From 9117681b35f122c1f5ca4b1a701435f21070b9c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 3 Oct 2011 10:55:53 +0200 Subject: [PATCH] decodebin2: Use a TIME limit for pre-rolling in live streams and not in non-live streams Fixes bug #647769 for real. --- gst/playback/gstdecodebin2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c index eb14dc2482..23b4564656 100644 --- a/gst/playback/gstdecodebin2.c +++ b/gst/playback/gstdecodebin2.c @@ -223,8 +223,8 @@ enum * and buffers in this case. */ #define AUTO_PREROLL_SIZE_BYTES 2 * 1024 * 1024 #define AUTO_PREROLL_SIZE_BUFFERS 0 -#define AUTO_PREROLL_NOT_SEEKABLE_SIZE_TIME 0 -#define AUTO_PREROLL_SEEKABLE_SIZE_TIME 10 * GST_SECOND +#define AUTO_PREROLL_NOT_SEEKABLE_SIZE_TIME 10 * GST_SECOND +#define AUTO_PREROLL_SEEKABLE_SIZE_TIME 0 /* whan playing, keep a max of 2MB of data but try to keep the number of buffers * as low as possible (try to aim for 5 buffers) */