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:
Sohel 2024-01-17 16:04:56 +05:30
parent 495390f63a
commit 32b5150717

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