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
This commit is contained in:
Mathieu Duponchelle 2013-08-20 22:12:03 +02:00 committed by Thibault Saunier
parent 9b0bcc01a0
commit 5d21f8f2e3

View file

@ -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;