]> git.parisson.com Git - timeside.git/commitdiff
shrink process args
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 11 Feb 2014 16:22:34 +0000 (17:22 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 11 Feb 2014 16:22:34 +0000 (17:22 +0100)
timeside/core.py
timeside/encoder/mp3.py

index 93822609f40d0dc9d93d2865bb2b6ec0484ef600..1f6e13bac37de324a18d690a72811e79b403a97c 100644 (file)
@@ -310,9 +310,8 @@ class ProcessPipe(object):
             signal.signal(signal.SIGINT, signal_handler)
 
         while not eod:
-            frames, eod = source.process()
             for item in items:
-                frames, eod = item.process(frames, eod)
+                frames, eod = item.process(*source.process())
 
         if source.id() == 'gst_live_dec':
             # Restore default handler for Interruption signal
index 5de1bd04bedd6d784576c5d93b0ed76c7317d274..b108e67bc344282e4d1ea9551776a09c4a25b050 100644 (file)
@@ -104,3 +104,4 @@ class Mp3Encoder(GstEncoder):
         except:
             raise IOError('EncoderError: cannot write tags')
 
+