mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
collectpads: Get the flushing state with the object lock taken.
Fixes #590056
This commit is contained in:
parent
c138aa8648
commit
cfb22080e2
1 changed files with 5 additions and 2 deletions
|
@ -1159,12 +1159,15 @@ gst_collect_pads_event (GstPad * pad, GstEvent * event)
|
|||
pads->eospads--;
|
||||
data->abidata.ABI.eos = FALSE;
|
||||
}
|
||||
GST_OBJECT_UNLOCK (pads);
|
||||
|
||||
if (!gst_collect_pads_is_flushing (pads))
|
||||
if (!gst_collect_pads_is_flushing (pads)) {
|
||||
/* forward event if all pads are no longer flushing */
|
||||
GST_DEBUG ("No more pads are flushing, forwarding FLUSH_STOP");
|
||||
GST_OBJECT_UNLOCK (pads);
|
||||
goto forward;
|
||||
}
|
||||
gst_event_unref (event);
|
||||
GST_OBJECT_UNLOCK (pads);
|
||||
goto done;
|
||||
}
|
||||
case GST_EVENT_EOS:
|
||||
|
|
Loading…
Reference in a new issue