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
ab827eca
Commit
ab827eca
authored
Jan 05, 2016
by
Sebastian Dröge
🍵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clock: Don't try to slave unsynced clocks
They will return useless values from get_time().
parent
58b4e075
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
gst/gstclock.c
gst/gstclock.c
+6
-0
No files found.
gst/gstclock.c
View file @
ab827eca
...
...
@@ -1174,6 +1174,12 @@ gst_clock_slave_callback (GstClock * master, GstClockTime time,
GstClockTime
stime
,
mtime
;
gdouble
r_squared
;
if
(
!
gst_clock_is_synced
(
clock
))
{
GST_CAT_DEBUG_OBJECT
(
GST_CAT_CLOCK
,
clock
,
"Slave clock is not synced yet"
);
return
TRUE
;
}
stime
=
gst_clock_get_internal_time
(
clock
);
mtime
=
gst_clock_get_time
(
master
);
...
...
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