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
This commit is contained in:
Sebastian Dröge 2013-05-08 14:52:18 +02:00
parent 4c362768fc
commit 4c52518ef5

View file

@ -1881,6 +1881,7 @@ type_found (GstElement * typefind, guint probability,
g_object_set (queue, "use-buffering", TRUE, NULL); g_object_set (queue, "use-buffering", TRUE, NULL);
g_object_set (queue, "ring-buffer-max-size", decoder->ring_buffer_max_size, g_object_set (queue, "ring-buffer-max-size", decoder->ring_buffer_max_size,
NULL); NULL);
decoder->queue = queue;
GST_DEBUG_OBJECT (decoder, "check media-type %s, %d", media_type, GST_DEBUG_OBJECT (decoder, "check media-type %s, %d", media_type,
decoder->download); decoder->download);