core: Ignore buffering for now

This commit is contained in:
Thomas Adamcik 2014-07-15 00:31:13 +02:00
parent d8c41de2f7
commit 4c666e47ee

View File

@ -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()