aggregator: add sub_latency_min to pad queue size

It should be possible for a subclass to let data accumulate on any of its input
pads for as long as it has introduced latency.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9320>
This commit is contained in:
Mathieu Duponchelle 2025-07-01 20:53:47 +02:00 committed by GStreamer Marge Bot
parent c604196306
commit 39a7e0066c

View File

@ -3271,7 +3271,9 @@ gst_aggregator_pad_has_space (GstAggregator * self, GstAggregatorPad * aggpad)
/* On top of our latency, we also want to allow buffering up to the
* minimum upstream latency to allow queue free sources with lower then
* upstream latency. */
max_time_level = self->priv->latency + self->priv->peer_latency_min;
max_time_level =
self->priv->latency + self->priv->sub_latency_min +
self->priv->peer_latency_min;
/* zero latency, if there is a buffer, it's full */
if (max_time_level == 0)