Commit 5d21f8f2 authored by Mathieu Duponchelle's avatar Mathieu Duponchelle Committed by Thibault Saunier
Browse files

videomixer: don't send flush_stop twice.

If we get flush start and a seek we need to only send flush_stop once.

More info at #706441
parent 9b0bcc01
......@@ -1435,6 +1435,7 @@ gst_videomixer2_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
* whichever happens first.
*/
g_atomic_int_set (&mix->flush_stop_pending, TRUE);
g_atomic_int_set (&mix->waiting_flush_stop, FALSE);
}
GST_COLLECT_PADS_STREAM_UNLOCK (mix->collect);
......@@ -1736,6 +1737,7 @@ gst_videomixer2_sink_event (GstCollectPads * pads, GstCollectData * cdata,
}
case GST_EVENT_FLUSH_START:
g_atomic_int_set (&mix->waiting_flush_stop, TRUE);
g_atomic_int_set (&mix->flush_stop_pending, FALSE);
ret = gst_collect_pads_event_default (pads, cdata, event, discard);
event = NULL;
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment