mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
[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:
parent
5f37d95613
commit
75edc07516
1 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue