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