projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58b4e07
)
clock: Don't try to slave unsynced clocks
author
Sebastian Dröge
<sebastian@centricular.com>
Tue, 5 Jan 2016 12:21:58 +0000
(14:21 +0200)
committer
Sebastian Dröge
<sebastian@centricular.com>
Tue, 5 Jan 2016 12:21:58 +0000
(14:21 +0200)
They will return useless values from get_time().
gst/gstclock.c
patch
|
blob
|
history
diff --git
a/gst/gstclock.c
b/gst/gstclock.c
index
01dc360
..
d3eaf9d
100644
(file)
--- a/
gst/gstclock.c
+++ b/
gst/gstclock.c
@@
-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);