From e5c6fe1bb214c8612393b2ef866a229d71e9cae6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 26 Feb 2016 17:33:21 +0100 Subject: [PATCH] player/control: unpause in Play() Fix regression by commit 45f6129a See http://bugs.musicpd.org/view.php?id=4477 --- src/player/Control.cxx | 5 +++++ 1 file changed, 5 insertions(+) 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