Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gstreamer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
luzpaz
gstreamer
Commits
2f776d67
Commit
2f776d67
authored
Jan 05, 2016
by
Sebastian Dröge
🍵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clock: Don't allow setting an unsynced clock as master
parent
ab827eca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
gst/gstclock.c
gst/gstclock.c
+11
-0
No files found.
gst/gstclock.c
View file @
2f776d67
...
...
@@ -1230,6 +1230,9 @@ gst_clock_set_master (GstClock * clock, GstClock * master)
/* we always allow setting the master to NULL */
if
(
master
&&
!
GST_OBJECT_FLAG_IS_SET
(
clock
,
GST_CLOCK_FLAG_CAN_SET_MASTER
))
goto
not_supported
;
if
(
master
&&
!
gst_clock_is_synced
(
master
))
goto
master_not_synced
;
GST_CAT_DEBUG_OBJECT
(
GST_CAT_CLOCK
,
clock
,
"slaving %p to master clock %p"
,
clock
,
master
);
GST_OBJECT_UNLOCK
(
clock
);
...
...
@@ -1270,6 +1273,14 @@ not_supported:
GST_OBJECT_UNLOCK
(
clock
);
return
FALSE
;
}
master_not_synced:
{
GST_CAT_DEBUG_OBJECT
(
GST_CAT_CLOCK
,
master
,
"master clock is not synced yet"
);
GST_OBJECT_UNLOCK
(
clock
);
return
FALSE
;
}
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment