mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
03b6dab006
commit
db758558e3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue