mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
[MOVED FROM GST-P-FARSIGHT] Empty the queue on flush start
20080514232643-3e2dc-5a3f52a3fd3771164dea95bd14410d76b4fce2aa.gz
This commit is contained in:
parent
c653d0ac38
commit
5f37d95613
1 changed files with 5 additions and 0 deletions
|
@ -437,6 +437,11 @@ gst_live_adder_flush_start (GstLiveAdder * adder)
|
||||||
GST_OBJECT_LOCK (adder);
|
GST_OBJECT_LOCK (adder);
|
||||||
/* mark ourselves as flushing */
|
/* mark ourselves as flushing */
|
||||||
adder->srcresult = GST_FLOW_WRONG_STATE;
|
adder->srcresult = GST_FLOW_WRONG_STATE;
|
||||||
|
|
||||||
|
/* Empty the queue */
|
||||||
|
g_queue_foreach (adder->buffers, (GFunc) gst_mini_object_unref, NULL);
|
||||||
|
while (g_queue_pop_head (adder->buffers)) {}
|
||||||
|
|
||||||
/* unlock clock, we just unschedule, the entry will be released by the
|
/* unlock clock, we just unschedule, the entry will be released by the
|
||||||
* locking streaming thread. */
|
* locking streaming thread. */
|
||||||
if (adder->clock_id)
|
if (adder->clock_id)
|
||||||
|
|
Loading…
Reference in a new issue