aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlaylistControl.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-09-27 22:07:20 +0200
committerMax Kellermann <max@duempel.org>2013-09-27 22:07:20 +0200
commitd05bb2a0afeb5b23cb8c1d019590fa112e2f579b (patch)
treed4a25a4e1724c3cb537a0be17758933a1beb0bf9 /src/PlaylistControl.cxx
parent6765901687b1b5869e240dfa7507430ab8b6eb73 (diff)
downloadmpd-d05bb2a0afeb5b23cb8c1d019590fa112e2f579b.tar.gz
mpd-d05bb2a0afeb5b23cb8c1d019590fa112e2f579b.tar.xz
mpd-d05bb2a0afeb5b23cb8c1d019590fa112e2f579b.zip
PlayerControl: use strictly typed enums
Diffstat (limited to '')
-rw-r--r--src/PlaylistControl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PlaylistControl.cxx b/src/PlaylistControl.cxx
index 5b33486e3..8fb634b77 100644
--- a/src/PlaylistControl.cxx
+++ b/src/PlaylistControl.cxx
@@ -250,8 +250,8 @@ playlist::SeekCurrent(player_control &pc, float seek_time, bool relative)
if (relative) {
const auto status = pc.GetStatus();
- if (status.state != PLAYER_STATE_PLAY &&
- status.state != PLAYER_STATE_PAUSE)
+ if (status.state != PlayerState::PLAY &&
+ status.state != PlayerState::PAUSE)
return PLAYLIST_RESULT_NOT_PLAYING;
seek_time += (int)status.elapsed_time;