From db758558e3b7354a158487e05a77d31edb3464cd Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 5 May 2022 09:00:17 +0200 Subject: [PATCH] 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: --- subprojects/gstreamer/plugins/elements/gstmultiqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gstreamer/plugins/elements/gstmultiqueue.c b/subprojects/gstreamer/plugins/elements/gstmultiqueue.c index e900520..ee12bd4 100644 --- a/subprojects/gstreamer/plugins/elements/gstmultiqueue.c +++ b/subprojects/gstreamer/plugins/elements/gstmultiqueue.c @@ -1633,7 +1633,7 @@ calculate_interleave (GstMultiQueue * mq, GstSingleQueue * sq) /* Progressively grow up the interleave up to 5s if some streams were inactive */ 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; } -- 2.7.4