multiqueue: Increase initial interleave growth rate

In the case where not all streams have received any data, growing the interleave
by only 100ms is too restrictive and would cause some (valid) mpeg-ts streams to
hang.

Bump up the interleave growth rate for those use-cases to 500ms per input (still
up to the limit of 5s).

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2370>
This commit is contained in:
Edward Hervey 2022-05-05 09:00:17 +02:00 committed by Edward Hervey
parent 03b6dab006
commit db758558e3

View file

@ -1633,7 +1633,7 @@ calculate_interleave (GstMultiQueue * mq, GstSingleQueue * sq)
/* Progressively grow up the interleave up to 5s if some streams were inactive */ /* Progressively grow up the interleave up to 5s if some streams were inactive */
if (some_inactive && interleave <= mq->interleave) { if (some_inactive && interleave <= mq->interleave) {
interleave = MIN (5 * GST_SECOND, mq->interleave + 100 * GST_MSECOND); interleave = MIN (5 * GST_SECOND, mq->interleave + 500 * GST_MSECOND);
do_update = TRUE; do_update = TRUE;
} }