Clean start scanner code a tiny bit
This commit is contained in:
parent
ab97f78060
commit
9cb9cf3e0c
@ -105,9 +105,10 @@ class Scanner(object):
|
|||||||
self.pipe.set_state(gst.STATE_PAUSED)
|
self.pipe.set_state(gst.STATE_PAUSED)
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
if self.uris:
|
if not self.uris:
|
||||||
self.next_uri()
|
return
|
||||||
self.loop.run()
|
self.next_uri()
|
||||||
|
self.loop.run()
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
self.pipe.set_state(gst.STATE_NULL)
|
self.pipe.set_state(gst.STATE_NULL)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user