fix quit callback

This commit is contained in:
j 2009-06-24 14:21:08 -04:00
parent acac26dad4
commit 28644ac0ae

View file

@ -123,6 +123,7 @@ class Video(gst.Pipeline):
def callback(frame, timestamp): def callback(frame, timestamp):
self._frames[timestamp] = frame self._frames[timestamp] = frame
self.mainloop.quit() self.mainloop.quit()
self._quit = False
def quit(): def quit():
if self._quit: if self._quit:
self.mainloop.quit() self.mainloop.quit()