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:
parent
c604196306
commit
39a7e0066c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user