]> git.parisson.com Git - timeside.git/commitdiff
LiveDecoder.input_src as constructor arg
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 9 Jan 2014 09:17:47 +0000 (10:17 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 9 Jan 2014 09:17:47 +0000 (10:17 +0100)
timeside/decoder/live.py

index f9225e08597eab820a73feeec1e5f3bc23600486..4c7e5c65a7db00d3de9028ec03f25226b0505d7f 100644 (file)
@@ -39,14 +39,13 @@ class LiveDecoder(Decoder):
 
     pipeline = None
     mainloopthread = None
-    input_src = 'alsasrc'
 
     @staticmethod
     @interfacedoc
     def id():
         return "gst_live_dec"
 
-    def __init__(self, num_buffers=-1):
+    def __init__(self, num_buffers=-1, input_src='autoaudiosrc'):
 
         """
         Construct a new LiveDecoder capturing audio from alsasrc
@@ -82,6 +81,7 @@ class LiveDecoder(Decoder):
         self.uri_start = 0
         self.uri_duration = None
         self.is_segment = False
+        self.input_src = input_src
 
     def setup(self, channels=None, samplerate=None, blocksize=None):