mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 21:28:45 +00:00
[MOVED FROM GST-P-FARSIGHT] Unlock liveadder empty buffer gcond on flush
20080421032614-3e2dc-4ed29e1583ff684338ba5d7611f60b1a7eaff563.gz
This commit is contained in:
parent
244bf6f250
commit
341a88cd04
1 changed files with 4 additions and 2 deletions
|
@ -452,6 +452,8 @@ gst_live_adder_flush_start (GstLiveAdder * adder)
|
|||
* locking streaming thread. */
|
||||
if (adder->clock_id)
|
||||
gst_clock_id_unschedule (adder->clock_id);
|
||||
|
||||
g_cond_broadcast (adder->not_empty_cond);
|
||||
GST_OBJECT_UNLOCK (adder);
|
||||
}
|
||||
|
||||
|
@ -1029,12 +1031,12 @@ gst_live_adder_loop (gpointer data)
|
|||
|
||||
for (;;)
|
||||
{
|
||||
if (adder->srcresult != GST_FLOW_OK)
|
||||
goto flushing;
|
||||
if (!g_queue_is_empty (adder->buffers))
|
||||
break;
|
||||
if (check_eos_locked (adder))
|
||||
goto eos;
|
||||
if (adder->srcresult != GST_FLOW_OK)
|
||||
goto flushing;
|
||||
g_cond_wait (adder->not_empty_cond, GST_OBJECT_GET_LOCK(adder));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue