Clean start scanner code a tiny bit

This commit is contained in:
Thomas Adamcik 2010-10-28 01:28:41 +02:00
parent ab97f78060
commit 9cb9cf3e0c

View File

@ -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)