Note why get_state is needed
This commit is contained in:
parent
48d7cd9865
commit
e25fbb35dc
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user