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).
This commit is contained in:
Wim Taymans 2009-10-23 14:54:47 -04:00 committed by Wim Taymans
parent 660fc111d1
commit 7ab778199e

View file

@ -1282,9 +1282,10 @@ make_decoder (GstURIDecodeBin * decoder)
if (decoder->caps) if (decoder->caps)
g_object_set (decodebin, "caps", decoder->caps, NULL); 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 /* 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); g_object_set (decodebin, "use-buffering", decoder->use_buffering, NULL);
if (decoder->use_buffering) { 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 static void
type_found (GstElement * typefind, guint probability, type_found (GstElement * typefind, guint probability,
GstCaps * caps, GstURIDecodeBin * decoder) GstCaps * caps, GstURIDecodeBin * decoder)