diff options
Diffstat (limited to 'src/PlaylistEdit.cxx')
-rw-r--r-- | src/PlaylistEdit.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PlaylistEdit.cxx b/src/PlaylistEdit.cxx index 138289dd5..df38c3da1 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 */ |