decodebin2: increase stream probing queues

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.
This commit is contained in:
Wim Taymans 2009-06-05 16:49:58 +02:00
parent 2dbd8702dd
commit f444f0edce

View 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);