diff options
author | Max Kellermann <max@duempel.org> | 2016-02-26 17:33:21 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2016-02-26 17:33:21 +0100 |
commit | e5c6fe1bb214c8612393b2ef866a229d71e9cae6 (patch) | |
tree | 3360e92dcd13cdfe31abdd1a199c987123ad6062 /src/player | |
parent | bf65a9732c4fcc6a8b59b42be23f17ae4ba1b8fd (diff) |
player/control: unpause in Play()
Fix regression by commit 45f6129a
See http://bugs.musicpd.org/view.php?id=4477
Diffstat (limited to 'src/player')
-rw-r--r-- | src/player/Control.cxx | 5 |
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 |