From 75edc07516b78309dc10f6419411f5db1b7f17a9 Mon Sep 17 00:00:00 2001 From: Olivier Crete Date: Wed, 14 May 2008 23:49:10 +0000 Subject: [MOVED FROM GST-P-FARSIGHT] Push out buffer if we're not playing while there is no clock 20080514234910-3e2dc-1096eb7dc3fada19afc81dcd536d9edc821d0da9.gz --- gst/liveadder/liveadder.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gst/liveadder/liveadder.c b/gst/liveadder/liveadder.c index 3ad1e192..59203769 100644 --- a/gst/liveadder/liveadder.c +++ b/gst/liveadder/liveadder.c @@ -1083,7 +1083,10 @@ gst_live_adder_loop (gpointer data) /* If we have no clock, then we can't do anything.. error */ 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, @@ -1122,6 +1125,8 @@ gst_live_adder_loop (gpointer data) if (ret != GST_CLOCK_OK && ret != GST_CLOCK_EARLY) goto clock_error; + push_buffer: + buffer = g_queue_pop_head (adder->buffers); if (!buffer) -- cgit v1.2.1