decodebin2: raise multiqueue max-size-bytes
authorMathieu Duponchelle <mathieu@centricular.com>
Wed, 19 Jan 2022 01:42:35 +0000 (02:42 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 21 Jan 2022 00:09:03 +0000 (00:09 +0000)
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1538>

subprojects/gst-plugins-base/gst/playback/gstdecodebin2.c

index d6d645f..f4be478 100644 (file)
@@ -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