player_control: eliminate PLAYER_COMMAND_PLAY
Sending PLAYER_COMMAND_STOP followed by PLAYER_COMMAND_QUEUE does the same. PLAYER_COMMAND_PLAY is redundant.
This commit is contained in:
@@ -347,7 +347,6 @@ static void player_process_command(struct player *player)
|
||||
{
|
||||
switch (pc.command) {
|
||||
case PLAYER_COMMAND_NONE:
|
||||
case PLAYER_COMMAND_PLAY:
|
||||
case PLAYER_COMMAND_STOP:
|
||||
case PLAYER_COMMAND_EXIT:
|
||||
case PLAYER_COMMAND_CLOSE_AUDIO:
|
||||
@@ -773,7 +772,6 @@ static gpointer player_task(G_GNUC_UNUSED gpointer arg)
|
||||
|
||||
while (1) {
|
||||
switch (pc.command) {
|
||||
case PLAYER_COMMAND_PLAY:
|
||||
case PLAYER_COMMAND_QUEUE:
|
||||
assert(pc.next_song != NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user