remuxer.py: allow more than one stream of the same type
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 13 Jan 2011 14:59:16 +0000 (14:59 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 26 Sep 2011 16:57:51 +0000 (17:57 +0100)
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

examples/remuxer.py

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