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:
Wim Taymans 2002-06-16 21:50:50 +00:00
parent 8e0687e93d
commit 7eb08447b9

View file

@ -508,18 +508,19 @@ gst_scheduler_set_clock (GstScheduler *sched, GstClock *clock)
sched->current_clock = clock; sched->current_clock = clock;
GST_DEBUG (GST_CAT_CLOCK, "scheduler setting clock %p (%s)", clock,
(clock ? GST_OBJECT_NAME (clock) : "nil"));
while (receivers) { while (receivers) {
GstElement *element = GST_ELEMENT (receivers->data); 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); gst_element_set_clock (element, clock);
receivers = g_list_next (receivers); receivers = g_list_next (receivers);
} }
while (schedulers) { while (schedulers) {
GstScheduler *scheduler = GST_SCHEDULER (schedulers->data); 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); gst_scheduler_set_clock (scheduler, clock);
schedulers = g_list_next (schedulers); schedulers = g_list_next (schedulers);
} }
@ -563,6 +564,8 @@ gst_scheduler_clock_wait (GstScheduler *sched, GstElement *element, GstClock *cl
if (CLASS (sched)->clock_wait) if (CLASS (sched)->clock_wait)
return CLASS (sched)->clock_wait (sched, element, clock, time, jitter); return CLASS (sched)->clock_wait (sched, element, clock, time, jitter);
else
return gst_clock_wait (clock, time, jitter);
return GST_CLOCK_TIMEOUT; return GST_CLOCK_TIMEOUT;
} }