PlayerControl: move functions into the class

This commit is contained in:
Max Kellermann
2013-01-20 17:48:23 +01:00
parent e6ed592b8a
commit e1b03b4a71
14 changed files with 351 additions and 416 deletions

View File

@@ -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 */