]> git.parisson.com Git - timeside.git/commitdiff
self.pipe for decoder
authoryomguy <yomguy@parisson.com>
Thu, 14 Apr 2011 14:22:37 +0000 (14:22 +0000)
committeryomguy <yomguy@parisson.com>
Thu, 14 Apr 2011 14:22:37 +0000 (14:22 +0000)
timeside/decoder/core.py

index 11aae1c4071e076a40ab7ccc12915b2f65ae8afe..a2430d4ef2c3618eec7d470ccd0f5eac247d6511 100644 (file)
@@ -59,10 +59,11 @@ class FileDecoder(Processor):
         
         # the output data format we want
         caps = "audio/x-raw-float, width=32"
-        self.pipeline = gst.parse_launch('''uridecodebin uri="%s" name=src
+        self.pipe = '''uridecodebin uri="%s" name=src
             ! audioconvert
             ! %s
-            ! appsink name=sink sync=False ''' % (self.uri, caps))
+            ! appsink name=sink sync=False ''' % (self.uri, caps)
+        self.pipeline = gst.parse_launch(self.pipe)
         # store a pointer to appsink in our decoder object
         self.sink = self.pipeline.get_by_name('sink')
         self.sink.set_property('emit-signals', True)