From 8f8b638d318858ca47ab022851f931a3116e3a79 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 21 Apr 2009 20:57:34 +0200 Subject: [PATCH] playbin: only use raw_decoding_mode when it's true First check the pad caps if they are raw before setting the raw_decoding_mode to TRUE. Fixes playback of transport streams and other streams that require large queues. Fixes #579734 --- gst/playback/gstplaybasebin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/playback/gstplaybasebin.c b/gst/playback/gstplaybasebin.c index 6239bf251d..77ba97c380 100644 --- a/gst/playback/gstplaybasebin.c +++ b/gst/playback/gstplaybasebin.c @@ -1709,8 +1709,8 @@ source_new_pad (GstElement * element, GstPad * pad, GstPlayBaseBin * bin) GST_DEBUG_PAD_NAME (pad), GST_ELEMENT_NAME (element)); /* if this is a pad with all raw caps, we can expose it */ - bin->raw_decoding_mode = TRUE; if (has_all_raw_caps (pad, &is_raw) && is_raw) { + bin->raw_decoding_mode = TRUE; /* it's all raw, create output pads. */ new_decoded_pad_full (element, pad, FALSE, bin, FALSE); return;