uridecodebin: use 0 for max buffer size
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 23 Oct 2009 17:58:25 +0000 (13:58 -0400)
committerWim Taymans <wim@metal.(none)>
Sat, 24 Oct 2009 20:09:59 +0000 (16:09 -0400)
gst/playback/gsturidecodebin.c

index 0c6cc3d..c0abcd7 100644 (file)
@@ -1297,8 +1297,8 @@ make_decoder (GstURIDecodeBin * decoder)
       if ((max_time = decoder->buffer_duration) == -1)
         max_time = 2 * GST_SECOND;
 
-      g_object_set (decodebin, "max-size-bytes", max_bytes, "max-size-time",
-          max_time, NULL);
+      g_object_set (decodebin, "max-size-bytes", max_bytes, "max-size-buffers",
+          (guint) 0, "max-size-time", max_time, NULL);
     }
   }