From ca38070bdf8798fbd24fcd9685ee6a2d245ed270 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 19 Aug 2020 21:17:31 +0300 Subject: [PATCH] aggregator: Reset latency values in start() Some base classes like videoaggregator try retrieving the latency during construction, which causes the latency values to be set already until reconfiguration happens. By resetting them the same way as in stop() we ensure that we always start cleanly. Part-of: --- libs/gst/base/gstaggregator.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/gst/base/gstaggregator.c b/libs/gst/base/gstaggregator.c index 5eb028f0e6..c2d451c153 100644 --- a/libs/gst/base/gstaggregator.c +++ b/libs/gst/base/gstaggregator.c @@ -1422,6 +1422,10 @@ gst_aggregator_start (GstAggregator * self) self->priv->send_eos = TRUE; self->priv->srccaps = NULL; + self->priv->has_peer_latency = FALSE; + self->priv->peer_latency_live = FALSE; + self->priv->peer_latency_min = self->priv->peer_latency_max = 0; + gst_aggregator_set_allocation (self, NULL, NULL, NULL, NULL); klass = GST_AGGREGATOR_GET_CLASS (self);