From 9749abc159c647c17e2f2a330561b0dc6c64bbb6 Mon Sep 17 00:00:00 2001 From: Thomas Fillon Date: Fri, 14 Feb 2014 09:41:31 +0100 Subject: [PATCH] Streming bug : mainloop thread does not seem to be needed here --- timeside/core.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) 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 - -- 2.39.5