From a5535e76e069e1b304298ad56147b023a436bfaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 25 Nov 2011 11:11:12 +0100 Subject: [PATCH] decodebin2: Set the multiqueue limits to the playing limits after overrun too We don't expect any new pads anymore and prerolling is finished now. --- gst/playback/gstdecodebin2.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c index ecf2a4d7c1..2d6f8579c2 100644 --- a/gst/playback/gstdecodebin2.c +++ b/gst/playback/gstdecodebin2.c @@ -2754,6 +2754,12 @@ multi_queue_overrun_cb (GstElement * queue, GstDecodeGroup * group) queue); group->overrun = TRUE; + /* this group has prerolled enough to not need more pads, + * we can probably set its buffering state to playing now */ + GST_DEBUG_OBJECT (group->dbin, "Setting group %p multiqueue to " + "'playing' buffering mode", group); + decodebin_set_queue_size (group->dbin, group->multiqueue, FALSE, + (group->parent ? group->parent->seekable : TRUE)); /* FIXME: We should make sure that everything gets exposed now * even if child chains are not complete because the will never