From 74e49b83566c559322fcb7d4a2c48072c3608f5a Mon Sep 17 00:00:00 2001 From: casey langen Date: Thu, 29 Jun 2017 23:13:51 -0700 Subject: [PATCH] Fixed a bug where seeking while paused would not update the internal playback state to "Playing", even though playback has resumed. --- src/core/audio/CrossfadeTransport.cpp | 4 ++++ src/core/audio/GaplessTransport.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/core/audio/CrossfadeTransport.cpp b/src/core/audio/CrossfadeTransport.cpp index 8119b0037..efcd048a9 100644 --- a/src/core/audio/CrossfadeTransport.cpp +++ b/src/core/audio/CrossfadeTransport.cpp @@ -171,6 +171,10 @@ void CrossfadeTransport::SetPosition(double seconds) { } } + if (this->state == PlaybackPaused) { + SetPlaybackState(PlaybackPlaying); + } + if (this->active.player) { this->TimeChanged(seconds); } diff --git a/src/core/audio/GaplessTransport.cpp b/src/core/audio/GaplessTransport.cpp index 28e080ded..cd7837e2f 100644 --- a/src/core/audio/GaplessTransport.cpp +++ b/src/core/audio/GaplessTransport.cpp @@ -237,6 +237,10 @@ void GaplessTransport::SetPosition(double seconds) { } } + if (this->state == PlaybackPaused) { + SetPlaybackState(PlaybackPlaying); + } + if (this->activePlayer) { this->TimeChanged(seconds); }