decodebin2: increase stream probing queues
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 5 Jun 2009 14:49:58 +0000 (16:49 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 5 Jun 2009 14:49:58 +0000 (16:49 +0200)
When we are probing for streams, we want to set the queue size in such a way
that we can scan a maximum amount of data without consuming too much memory.
Therefore, remove the time limit on the queue and only stop scanning after 2MB
of data.

See #584104.

gst/playback/gstdecodebin2.c

index f03d29c..cbe1e31 100644 (file)
@@ -1820,7 +1820,7 @@ gst_decode_group_new (GstDecodeBin * dbin, gboolean use_queue)
      * be exposed. */
     g_object_set (G_OBJECT (mq),
         "max-size-bytes", 2 * 1024 * 1024,
-        "max-size-time", 5 * GST_SECOND, "max-size-buffers", 0, NULL);
+        "max-size-time", 0, "max-size-buffers", 0, NULL);
     /* will expose the group */
     group->overrunsig = g_signal_connect (G_OBJECT (mq), "overrun",
         G_CALLBACK (multi_queue_overrun_cb), group);