From 71a372c8473d9126c0b7661c30991f83fd14eb9a Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 23 Apr 2009 08:41:19 +0200 Subject: [PATCH] decodebin2: Don't reduce max-size-time of exposed groups. Fixes #579912 The 2s limit is way too small for a lot of files (which have an interleave in time of between 3 and 5s). Instead, leave it to the initial 5s value and reduce the other limits (allowing us to stay memory-efficient). --- gst/playback/gstdecodebin2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c index 0e77dc22f2..2212689356 100644 --- a/gst/playback/gstdecodebin2.c +++ b/gst/playback/gstdecodebin2.c @@ -2127,8 +2127,7 @@ gst_decode_group_expose (GstDecodeGroup * group) /* 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). */ g_object_set (G_OBJECT (group->multiqueue), - "max-size-bytes", 2 * 1024 * 1024, - "max-size-time", 2 * GST_SECOND, "max-size-buffers", 5, NULL); + "max-size-bytes", 2 * 1024 * 1024, "max-size-buffers", 5, NULL); /* we can now disconnect any overrun signal, which is used to expose the * group. */ if (group->overrunsig) {