forked from platypush/platypush
Only stop the loop if it is set
This commit is contained in:
parent
7947c1031d
commit
9b23ab7015
1 changed files with 2 additions and 1 deletions
|
@ -77,6 +77,7 @@ class Pipeline:
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
self.pipeline.set_state(Gst.State.NULL)
|
self.pipeline.set_state(Gst.State.NULL)
|
||||||
|
if self.loop:
|
||||||
self.loop.stop()
|
self.loop.stop()
|
||||||
self.loop = None
|
self.loop = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue