audio: Do not try duration workaround for non-seekable sources
This commit is contained in:
parent
58d1e0fbee
commit
3f46311291
@ -242,6 +242,10 @@ def _process(pipeline, timeout_ms):
|
|||||||
if tags and success:
|
if tags and success:
|
||||||
return tags, mime, have_audio, duration
|
return tags, mime, have_audio, duration
|
||||||
|
|
||||||
|
# Don't try workaround for non-seekable sources such as mmssrc:
|
||||||
|
if not _query_seekable(pipeline):
|
||||||
|
return tags, mime, have_audio, duration
|
||||||
|
|
||||||
# Workaround for upstream bug which causes tags/duration to arrive
|
# Workaround for upstream bug which causes tags/duration to arrive
|
||||||
# after pre-roll. We get around this by starting to play the track
|
# after pre-roll. We get around this by starting to play the track
|
||||||
# and then waiting for a duration change.
|
# and then waiting for a duration change.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user