]> git.parisson.com Git - timeside.git/commitdiff
Streming bug : mainloop thread does not seem to be needed here
authorThomas Fillon <thomas@parisson.com>
Fri, 14 Feb 2014 08:41:31 +0000 (09:41 +0100)
committerThomas Fillon <thomas@parisson.com>
Fri, 14 Feb 2014 08:41:31 +0000 (09:41 +0100)
timeside/core.py

index 2b09243b3acc6b844b3c249c12fe66053327aeed..df01a7b99f70276c4fee7fe162f18e6125f1efab 100644 (file)
@@ -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
-