mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +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--;
|
pads->eospads--;
|
||||||
data->abidata.ABI.eos = FALSE;
|
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 */
|
/* 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;
|
goto forward;
|
||||||
|
}
|
||||||
gst_event_unref (event);
|
gst_event_unref (event);
|
||||||
|
GST_OBJECT_UNLOCK (pads);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
case GST_EVENT_EOS:
|
case GST_EVENT_EOS:
|
||||||
|
|
Loading…
Reference in a new issue