fix quit callback
This commit is contained in:
parent
acac26dad4
commit
28644ac0ae
1 changed files with 1 additions and 0 deletions
|
@ -123,6 +123,7 @@ class Video(gst.Pipeline):
|
|||
def callback(frame, timestamp):
|
||||
self._frames[timestamp] = frame
|
||||
self.mainloop.quit()
|
||||
self._quit = False
|
||||
def quit():
|
||||
if self._quit:
|
||||
self.mainloop.quit()
|
||||
|
|
Loading…
Reference in a new issue