Merge branch 'Fix_Aggregator_Race_condition' into 'main'

aggregator: avoid race condition after FLUSH_STOP event

See merge request gstreamer/gstreamer!5927
This commit is contained in:
Sohel Momin 2024-05-03 21:39:27 +00:00
commit b86bcdc570

View file

@ -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);