From: Thomas Fillon Date: Fri, 14 Feb 2014 08:41:31 +0000 (+0100) Subject: Streming bug : mainloop thread does not seem to be needed here X-Git-Tag: 0.5.4~6^2~2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=9749abc159c647c17e2f2a330561b0dc6c64bbb6;p=timeside.git Streming bug : mainloop thread does not seem to be needed here --- diff --git a/timeside/core.py b/timeside/core.py index 2b09243..df01a7b 100644 --- a/timeside/core.py +++ b/timeside/core.py @@ -344,17 +344,8 @@ class ProcessPipe(object): def stream(self): self._stream_thread = True - import threading - class MainloopThread(threading.Thread): - def __init__(self, mainloop): - threading.Thread.__init__(self) - self.mainloop = mainloop - def run(self): - self.mainloop.run() - self.mainloop = gobject.MainLoop() - self.mainloopthread = MainloopThread(self.mainloop) - self.mainloopthread.start() + import threading class PipeThread(threading.Thread): def __init__(self, process_pipe): @@ -391,5 +382,3 @@ class ProcessPipe(object): self._streamer = processor else: raise TypeError('More than one streaming processor in pipe') - print self._streamer -