Note why get_state is needed

This commit is contained in:
Thomas Adamcik 2011-06-04 00:14:17 +02:00
parent 48d7cd9865
commit e25fbb35dc

View File

@ -96,7 +96,7 @@ class Scanner(object):
self.next_uri()
def get_duration(self):
self.pipe.get_state()
self.pipe.get_state() # Block untill state change is done.
try:
return self.pipe.query_duration(
gst.FORMAT_TIME, None)[0] // gst.MSECOND