audio: Explicitly convert long to int
This commit is contained in:
parent
5112985cc7
commit
2e32b5c8bf
@ -176,7 +176,7 @@ def _query_duration(pipeline):
|
||||
elif duration < 0:
|
||||
duration = None # Stream without duration.
|
||||
else:
|
||||
duration = duration // Gst.MSECOND
|
||||
duration = int(duration // Gst.MSECOND)
|
||||
return success, duration
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user