videomixer: Don't hold stream-lock while pushing non-serialized events

https://bugzilla.gnome.org/show_bug.cgi?id=700868
This commit is contained in:
Nicolas Dufresne 2013-05-22 21:01:48 -04:00
parent a7e0f251ca
commit d8c5e31657

View file

@ -1719,9 +1719,9 @@ gst_videomixer2_sink_event (GstCollectPads * pads, GstCollectData * cdata,
case GST_EVENT_FLUSH_START:
GST_COLLECT_PADS_STREAM_LOCK (mix->collect);
mix->flush_stop_pending = TRUE;
GST_COLLECT_PADS_STREAM_UNLOCK (mix->collect);
ret = gst_collect_pads_event_default (pads, cdata, event, discard);
event = NULL;
GST_COLLECT_PADS_STREAM_UNLOCK (mix->collect);
break;
case GST_EVENT_FLUSH_STOP:
GST_COLLECT_PADS_STREAM_LOCK (mix->collect);