aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_control.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-10-08 21:22:31 +0200
committerMax Kellermann <max@duempel.org>2009-10-08 21:22:31 +0200
commitd6a6f428b3f9ddc13492951e2ed1699def516214 (patch)
tree4f71b8d8fd787261be882a6d030aed1a838a990b /src/player_control.c
parentfd3934b8492190254351130be2f0f4c923b08ac3 (diff)
downloadmpd-d6a6f428b3f9ddc13492951e2ed1699def516214.tar.gz
mpd-d6a6f428b3f9ddc13492951e2ed1699def516214.tar.xz
mpd-d6a6f428b3f9ddc13492951e2ed1699def516214.zip
player_control: eliminate PLAYER_COMMAND_PLAY
Sending PLAYER_COMMAND_STOP followed by PLAYER_COMMAND_QUEUE does the same. PLAYER_COMMAND_PLAY is redundant.
Diffstat (limited to '')
-rw-r--r--src/player_control.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/player_control.c b/src/player_control.c
index 2229efdf0..38d960031 100644
--- a/src/player_control.c
+++ b/src/player_control.c
@@ -77,8 +77,7 @@ pc_play(struct song *song)
assert(pc.next_song == NULL);
- pc.next_song = song;
- player_command(PLAYER_COMMAND_PLAY);
+ pc_enqueue_song(song);
assert(pc.next_song == NULL);