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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/599>
This commit is contained in:
Sebastian Dröge 2020-08-19 21:17:31 +03:00
parent 40c994cdde
commit ca38070bdf

View file

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