aboutsummaryrefslogtreecommitdiff
path: root/src/PlaylistEdit.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-20 17:48:23 +0100
committerMax Kellermann <max@duempel.org>2013-01-20 17:48:23 +0100
commite1b03b4a716dbb35a737d34fba531e623f7980f3 (patch)
treeac2143b4b3122d594000a70b51ca29fb2c937307 /src/PlaylistEdit.cxx
parente6ed592b8aeb5025be0893ee99ff44e46a9ffd1c (diff)
PlayerControl: move functions into the class
Diffstat (limited to 'src/PlaylistEdit.cxx')
-rw-r--r--src/PlaylistEdit.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PlaylistEdit.cxx b/src/PlaylistEdit.cxx
index 138289dd..df38c3da 100644
--- a/src/PlaylistEdit.cxx
+++ b/src/PlaylistEdit.cxx
@@ -229,11 +229,11 @@ playlist::DeleteInternal(player_control &pc,
unsigned songOrder = queue.PositionToOrder(song);
if (playing && current == (int)songOrder) {
- bool paused = pc_get_state(&pc) == PLAYER_STATE_PAUSE;
+ const bool paused = pc.GetState() == PLAYER_STATE_PAUSE;
/* the current song is going to be deleted: stop the player */
- pc_stop(&pc);
+ pc.Stop();
playing = false;
/* see which song is going to be played instead */