From 38790e57574c14020e309578d680efd6359eeee8 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 4 Jul 2013 12:54:59 -0400 Subject: [PATCH] adder: Do not send flush_start event with the stream lock taken FLUSH_START is not serialized, so the lock should not be taken when sending it. --- gst/adder/gstadder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/adder/gstadder.c b/gst/adder/gstadder.c index ca3c7e4..78f7c82 100644 --- a/gst/adder/gstadder.c +++ b/gst/adder/gstadder.c @@ -834,10 +834,10 @@ gst_adder_sink_event (GstCollectPads * pads, GstCollectData * pad, } case GST_EVENT_FLUSH_START: /* ensure that we will send a flush stop */ - GST_COLLECT_PADS_STREAM_LOCK (adder->collect); - adder->flush_stop_pending = TRUE; res = gst_collect_pads_event_default (pads, pad, event, discard); event = NULL; + GST_COLLECT_PADS_STREAM_LOCK (adder->collect); + adder->flush_stop_pending = TRUE; GST_COLLECT_PADS_STREAM_UNLOCK (adder->collect); break; case GST_EVENT_FLUSH_STOP: -- 2.7.4