diff options
author | Max Kellermann <max@duempel.org> | 2013-09-27 22:07:20 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-09-27 22:07:20 +0200 |
commit | d05bb2a0afeb5b23cb8c1d019590fa112e2f579b (patch) | |
tree | d4a25a4e1724c3cb537a0be17758933a1beb0bf9 /src/PlaylistControl.cxx | |
parent | 6765901687b1b5869e240dfa7507430ab8b6eb73 (diff) | |
download | mpd-d05bb2a0afeb5b23cb8c1d019590fa112e2f579b.tar.gz mpd-d05bb2a0afeb5b23cb8c1d019590fa112e2f579b.tar.xz mpd-d05bb2a0afeb5b23cb8c1d019590fa112e2f579b.zip |
PlayerControl: use strictly typed enums
Diffstat (limited to '')
-rw-r--r-- | src/PlaylistControl.cxx | 4 |
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; |