From 8983696e39eadf93eac65f263932a590880b19f7 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Wed, 19 Jan 2022 02:42:35 +0100 Subject: [PATCH] decodebin2: raise multiqueue max-size-bytes The earlier size of 2 MB was set back in 2009, it doesn't seem unreasonable to raise it to 8 MB these days. The use case at hand is matroskademux containing both a video stream with a very low amount of compression but no decoding latency, and a H265 stream. Part-of: --- subprojects/gst-plugins-base/gst/playback/gstdecodebin2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/subprojects/gst-plugins-base/gst/playback/gstdecodebin2.c b/subprojects/gst-plugins-base/gst/playback/gstdecodebin2.c index d6d645fd5f..f4be478e7f 100644 --- a/subprojects/gst-plugins-base/gst/playback/gstdecodebin2.c +++ b/subprojects/gst-plugins-base/gst/playback/gstdecodebin2.c @@ -239,16 +239,16 @@ enum LAST_SIGNAL }; -/* automatic sizes, while prerolling we buffer up to 2MB, we ignore time +/* automatic sizes, while prerolling we buffer up to 8MB, we ignore time * and buffers in this case. */ -#define AUTO_PREROLL_SIZE_BYTES 2 * 1024 * 1024 +#define AUTO_PREROLL_SIZE_BYTES 8 * 1024 * 1024 #define AUTO_PREROLL_SIZE_BUFFERS 0 #define AUTO_PREROLL_NOT_SEEKABLE_SIZE_TIME 10 * GST_SECOND #define AUTO_PREROLL_SEEKABLE_SIZE_TIME 0 -/* when playing, keep a max of 2MB of data but try to keep the number of buffers +/* when playing, keep a max of 8MB of data but try to keep the number of buffers * as low as possible (try to aim for 5 buffers) */ -#define AUTO_PLAY_SIZE_BYTES 2 * 1024 * 1024 +#define AUTO_PLAY_SIZE_BYTES 8 * 1024 * 1024 #define AUTO_PLAY_SIZE_BUFFERS 5 #define AUTO_PLAY_SIZE_TIME 0