core: Ignore buffering for now
This commit is contained in:
parent
d8c41de2f7
commit
4c666e47ee
@ -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
|
# 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
|
# 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.
|
# 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):
|
and self.playback.state != PlaybackState.PAUSED):
|
||||||
self.playback.state = new_state
|
self.playback.state = new_state
|
||||||
self.playback._trigger_track_playback_paused()
|
self.playback._trigger_track_playback_paused()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user