mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-06-08 17:19:25 +00:00
aggregator: avoid race condition after FLUSH_STOP event
We wait until all pads have buffers in gst_aggregator_wait_and_check() but in case of FLUSH_STOP event first_buffer was not getting true which is one of the condition to wait in gst_aggregator_wait_and_check()
This commit is contained in:
parent
495390f63a
commit
32b5150717
|
@ -1793,6 +1793,9 @@ gst_aggregator_default_sink_event (GstAggregator * self,
|
|||
SRC_LOCK (self);
|
||||
priv->send_eos = TRUE;
|
||||
priv->got_eos_event = FALSE;
|
||||
if (self->priv->start_time_selection ==
|
||||
GST_AGGREGATOR_START_TIME_SELECTION_FIRST)
|
||||
priv->first_buffer = TRUE;
|
||||
SRC_BROADCAST (self);
|
||||
SRC_UNLOCK (self);
|
||||
|
||||
|
|
Loading…
Reference in a new issue