From 7ab778199e0114f2ba6170a67491094fc62d2f11 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 23 Oct 2009 14:54:47 -0400 Subject: [PATCH] uridecodebin: don't use 2 buffering elements Only use the multiqueue buffering when we don't have a stream (and thus are using queue2 to do the buffering already). --- gst/playback/gsturidecodebin.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gst/playback/gsturidecodebin.c b/gst/playback/gsturidecodebin.c index a1691fb..a60e2f0 100644 --- a/gst/playback/gsturidecodebin.c +++ b/gst/playback/gsturidecodebin.c @@ -1282,9 +1282,10 @@ make_decoder (GstURIDecodeBin * decoder) if (decoder->caps) g_object_set (decodebin, "caps", decoder->caps, NULL); - if (!decoder->is_download) { + if (!decoder->is_stream) { /* propagate the use-buffering property but only when we are not already - * doing download buffering. */ + * doing stream buffering with queue2. FIXME, we might want to do stream + * buffering with the multiqueue buffering instead of queue2. */ g_object_set (decodebin, "use-buffering", decoder->use_buffering, NULL); if (decoder->use_buffering) { @@ -1323,6 +1324,8 @@ no_decodebin: } } +/* signaled when we have a stream and we need to configure the download + * buffering or regular buffering */ static void type_found (GstElement * typefind, guint probability, GstCaps * caps, GstURIDecodeBin * decoder) -- 2.7.4