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:
Olivier Crête 2017-05-23 00:53:23 +02:00 committed by Tim-Philipp Müller
parent a001f6d587
commit 0500807b55

View file

@ -1493,7 +1493,9 @@ gst_aggregator_stop_pad (GstAggregator * self, GstAggregatorPad * pad,
gst_aggregator_pad_flush (pad, self);
PAD_LOCK (pad);
pad->priv->flow_return = GST_FLOW_FLUSHING;
pad->priv->negotiated = FALSE;
PAD_BROADCAST_EVENT (pad);
PAD_UNLOCK (pad);
return TRUE;