From 3f46311291ca44c5fa6bef54aab8a0a263bb06c6 Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Wed, 26 Oct 2016 23:11:48 +0200 Subject: [PATCH] audio: Do not try duration workaround for non-seekable sources --- mopidy/audio/scan.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mopidy/audio/scan.py b/mopidy/audio/scan.py index cc182e8d..72c4bee6 100644 --- a/mopidy/audio/scan.py +++ b/mopidy/audio/scan.py @@ -242,6 +242,10 @@ def _process(pipeline, timeout_ms): if tags and success: 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 # after pre-roll. We get around this by starting to play the track # and then waiting for a duration change.