avoid calling this twice
This commit is contained in:
parent
d6ec717856
commit
e04de10c82
|
@ -113,9 +113,10 @@ class ThreadedPipeline:
|
||||||
|
|
||||||
# TODO: this might not all be necessary
|
# TODO: this might not all be necessary
|
||||||
def stop(self):
|
def stop(self):
|
||||||
self._stopper.set()
|
if self._stopper.is_set():
|
||||||
self._pipeline.set_state(Gst.State.NULL)
|
self._stopper.set()
|
||||||
logger.debug('Shut down gstreamer pipeline: %s', self._pipeline.get_name())
|
self._pipeline.set_state(Gst.State.NULL)
|
||||||
|
logger.debug('Shut down gstreamer pipeline: %s', self._pipeline.get_name())
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
self.stop()
|
self.stop()
|
||||||
|
|
Loading…
Reference in New Issue