player/control: unpause in Play()

Fix regression by commit 45f6129a

See http://bugs.musicpd.org/view.php?id=4477
This commit is contained in:
Max Kellermann 2016-02-26 17:33:21 +01:00
parent bf65a9732c
commit e5c6fe1bb2

View File

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