From 4c666e47eefee0596b72486d6bbcab888136207c Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Tue, 15 Jul 2014 00:31:13 +0200 Subject: [PATCH] core: Ignore buffering for now --- mopidy/core/actor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mopidy/core/actor.py b/mopidy/core/actor.py index 9d80d04c..429dd2ef 100644 --- a/mopidy/core/actor.py +++ b/mopidy/core/actor.py @@ -72,7 +72,10 @@ class Core(pykka.ThreadingActor, audio.AudioListener, backend.BackendListener): # playback, but mopidy.core doesn't know this, so we need to update # mopidy.core's state to match the actual state in mopidy.audio. If we # don't do this, clients will think that we're still playing. - if (new_state == PlaybackState.PAUSED + + # We ignore cases when target state is set as this is buffering + # updates (at least for now) and we need to get #234 fixed... + if (new_state == PlaybackState.PAUSED and not target_state and self.playback.state != PlaybackState.PAUSED): self.playback.state = new_state self.playback._trigger_track_playback_paused()