mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
aggregator: Set flow to FLUSHING on pad stop
Fixes a rare race where the pad is being stopped while doing a query.
This commit is contained in:
parent
a001f6d587
commit
0500807b55
1 changed files with 2 additions and 0 deletions
|
@ -1493,7 +1493,9 @@ gst_aggregator_stop_pad (GstAggregator * self, GstAggregatorPad * pad,
|
||||||
gst_aggregator_pad_flush (pad, self);
|
gst_aggregator_pad_flush (pad, self);
|
||||||
|
|
||||||
PAD_LOCK (pad);
|
PAD_LOCK (pad);
|
||||||
|
pad->priv->flow_return = GST_FLOW_FLUSHING;
|
||||||
pad->priv->negotiated = FALSE;
|
pad->priv->negotiated = FALSE;
|
||||||
|
PAD_BROADCAST_EVENT (pad);
|
||||||
PAD_UNLOCK (pad);
|
PAD_UNLOCK (pad);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue