mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
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.
This commit is contained in:
parent
cd00206059
commit
38790e5757
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue