mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 13:02:29 +00:00
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:
parent
40c994cdde
commit
ca38070bdf
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue