summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2013-03-06 16:44:45 +0100
committerThiago Santos <thiago.sousa.santos@collabora.com>2013-04-23 11:20:28 -0300
commitc5840ebbd9911348675f0c197566db27409c2124 (patch)
treebd2fb061ed834849ca510f09c03ff9f68e67a405
parent26c5bc1ce41c94e6398c09cdd30fdf07c57d9275 (diff)
decodebin2: also remove the bytes limit
Remove the byte limit for adaptive http streaming. Because some fragments might be very big, we might need a lot of buffering. I also suspect another problem where data is actually missing and things go out of sync somehow.
-rw-r--r--gst/playback/gstdecodebin2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c
index 7c9c6050a..0e5e1fc90 100644
--- a/gst/playback/gstdecodebin2.c
+++ b/gst/playback/gstdecodebin2.c
@@ -3128,7 +3128,9 @@ decodebin_set_queue_size (GstDecodeBin * dbin, GstElement * multiqueue,
} else {
/* update runtime limits. At runtime, we try to keep the amount of buffers
* in the queues as low as possible (but at least 5 buffers). */
- if ((max_bytes = dbin->max_size_bytes) == 0)
+ if (dbin->use_buffering)
+ max_bytes = 0;
+ else if ((max_bytes = dbin->max_size_bytes) == 0)
max_bytes = AUTO_PLAY_SIZE_BYTES;
if ((max_buffers = dbin->max_size_buffers) == 0)
max_buffers = AUTO_PLAY_SIZE_BUFFERS;