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)
def start(self):
if self.uris:
self.next_uri()
self.loop.run()
if not self.uris:
return
self.next_uri()
self.loop.run()
def stop(self):
self.pipe.set_state(gst.STATE_NULL)