mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
Some small cleanups implement a default _clock_wait
Original commit message from CVS: Some small cleanups implement a default _clock_wait
This commit is contained in:
parent
8e0687e93d
commit
7eb08447b9
1 changed files with 6 additions and 3 deletions
|
@ -508,18 +508,19 @@ gst_scheduler_set_clock (GstScheduler *sched, GstClock *clock)
|
|||
|
||||
sched->current_clock = clock;
|
||||
|
||||
GST_DEBUG (GST_CAT_CLOCK, "scheduler setting clock %p (%s)", clock,
|
||||
(clock ? GST_OBJECT_NAME (clock) : "nil"));
|
||||
|
||||
while (receivers) {
|
||||
GstElement *element = GST_ELEMENT (receivers->data);
|
||||
|
||||
GST_DEBUG (GST_CAT_CLOCK, "scheduler setting clock %p (%s) on element %s", clock,
|
||||
(clock ? GST_OBJECT_NAME (clock) : "nil"), GST_ELEMENT_NAME (element));
|
||||
gst_element_set_clock (element, clock);
|
||||
receivers = g_list_next (receivers);
|
||||
}
|
||||
while (schedulers) {
|
||||
GstScheduler *scheduler = GST_SCHEDULER (schedulers->data);
|
||||
|
||||
GST_DEBUG (GST_CAT_CLOCK, "scheduler setting clock %p (%s) on scheduler %p", clock,
|
||||
(clock ? GST_OBJECT_NAME (clock) : "nil"), scheduler);
|
||||
gst_scheduler_set_clock (scheduler, clock);
|
||||
schedulers = g_list_next (schedulers);
|
||||
}
|
||||
|
@ -563,6 +564,8 @@ gst_scheduler_clock_wait (GstScheduler *sched, GstElement *element, GstClock *cl
|
|||
|
||||
if (CLASS (sched)->clock_wait)
|
||||
return CLASS (sched)->clock_wait (sched, element, clock, time, jitter);
|
||||
else
|
||||
return gst_clock_wait (clock, time, jitter);
|
||||
|
||||
return GST_CLOCK_TIMEOUT;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue