[MOVED FROM GST-P-FARSIGHT] Push out buffer if we're not playing while there is no clock

20080514234910-3e2dc-1096eb7dc3fada19afc81dcd536d9edc821d0da9.gz
This commit is contained in:
Olivier Crete 2008-05-14 23:49:10 +00:00 committed by Edward Hervey
parent 5f37d95613
commit 75edc07516

View file

@ -1083,7 +1083,10 @@ gst_live_adder_loop (gpointer data)
/* If we have no clock, then we can't do anything.. error */ /* If we have no clock, then we can't do anything.. error */
if (!clock) { if (!clock) {
goto no_clock; if (adder->playing)
goto no_clock;
else
goto push_buffer;
} }
GST_DEBUG_OBJECT (adder, "sync to timestamp %" GST_TIME_FORMAT, GST_DEBUG_OBJECT (adder, "sync to timestamp %" GST_TIME_FORMAT,
@ -1122,6 +1125,8 @@ gst_live_adder_loop (gpointer data)
if (ret != GST_CLOCK_OK && ret != GST_CLOCK_EARLY) if (ret != GST_CLOCK_OK && ret != GST_CLOCK_EARLY)
goto clock_error; goto clock_error;
push_buffer:
buffer = g_queue_pop_head (adder->buffers); buffer = g_queue_pop_head (adder->buffers);
if (!buffer) if (!buffer)