From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian.droege@collabora.co.uk>
Date: Wed, 8 May 2013 14:52:18 +0200
Subject: uridecodebin: Always store queue2 elements for later removal

Otherwise we accumulate more and more queue2 elements, and let each
of them start a thread doing nothing but waiting each time uridecodebin
goes to PAUSED.

https://bugzilla.gnome.org/show_bug.cgi?id=699794

diff --git a/gst/playback/gsturidecodebin.c b/gst/playback/gsturidecodebin.c
--- a/gst/playback/gsturidecodebin.c
+++ b/gst/playback/gsturidecodebin.c
@@ -1808,6 +1808,7 @@ type_found (GstElement * typefind, guint probability,
   g_object_set (queue, "use-buffering", TRUE, NULL);
   g_object_set (queue, "ring-buffer-max-size", decoder->ring_buffer_max_size,
       NULL);
+  decoder->queue = queue;
 
   GST_DEBUG_OBJECT (decoder, "check media-type %s, %d", media_type,
       decoder->download);
