remuxer.py: allow more than one stream of the same type

Queue names would collide otherwise, so just pass None for now. Also
guarantees that we don't get silly names like "queue_audio/x-foobar".

https://bugzilla.gnome.org/show_bug.cgi?id=639427
This commit is contained in:
Vincent Penquerc'h 2011-01-13 14:59:16 +00:00 committed by Tim-Philipp Müller
parent 3e3795068e
commit 160b6d1bd5

View file

@ -546,7 +546,7 @@ class RemuxBin(gst.Bin):
self.async_error("Unsupported media type: %s", format) self.async_error("Unsupported media type: %s", format)
return return
queue = gst.element_factory_make('queue', 'queue_' + format) queue = gst.element_factory_make('queue', None);
queue.set_property('max-size-buffers', 1000) queue.set_property('max-size-buffers', 1000)
parser = gst.element_factory_make(self.parsefactories[format]) parser = gst.element_factory_make(self.parsefactories[format])
self.add(queue) self.add(queue)