avoid calling this twice

This commit is contained in:
petrucci4prez 2017-06-10 02:04:28 -04:00
parent d6ec717856
commit e04de10c82
1 changed files with 4 additions and 3 deletions

View File

@ -113,6 +113,7 @@ class ThreadedPipeline:
# TODO: this might not all be necessary
def stop(self):
if self._stopper.is_set():
self._stopper.set()
self._pipeline.set_state(Gst.State.NULL)
logger.debug('Shut down gstreamer pipeline: %s', self._pipeline.get_name())