summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-02-26 17:33:21 +0100
committerMax Kellermann <max@duempel.org>2016-02-26 17:33:21 +0100
commite5c6fe1bb214c8612393b2ef866a229d71e9cae6 (patch)
tree3360e92dcd13cdfe31abdd1a199c987123ad6062
parentbf65a9732c4fcc6a8b59b42be23f17ae4ba1b8fd (diff)
player/control: unpause in Play()
Fix regression by commit 45f6129a See http://bugs.musicpd.org/view.php?id=4477
-rw-r--r--src/player/Control.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/player/Control.cxx b/src/player/Control.cxx
index 2f788ff44..c816c6e7f 100644
--- a/src/player/Control.cxx
+++ b/src/player/Control.cxx
@@ -56,6 +56,11 @@ PlayerControl::Play(DetachedSong *song)
const ScopeLock protect(mutex);
SeekLocked(song, SongTime::zero(), IgnoreError());
+
+ if (state == PlayerState::PAUSE)
+ /* if the player was paused previously, we need to
+ unpause it */
+ PauseLocked();
}
void