From 07947a526d6bfc37573fa1b15d0466ca95555369 Mon Sep 17 00:00:00 2001 From: chme Date: Sun, 28 Feb 2016 10:29:45 +0100 Subject: [PATCH] [mpd] Do not start playback automatically after adding songs to the queue --- src/mpd.c | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/src/mpd.c b/src/mpd.c index 8a251e97..ffcfbe00 100644 --- a/src/mpd.c +++ b/src/mpd.c @@ -1606,12 +1606,6 @@ mpd_command_add(struct evbuffer *evbuf, int argc, char **argv, char **errmsg) player_queue_add(items, NULL); - ret = player_playback_start(NULL); - if (ret < 0) - { - DPRINTF(E_LOG, L_MPD, "Could not start playback\n"); - } - return 0; } @@ -1659,12 +1653,6 @@ mpd_command_addid(struct evbuffer *evbuf, int argc, char **argv, char **errmsg) "Id: %d\n", item_id); - ret = player_playback_start(NULL); - if (ret < 0) - { - DPRINTF(E_LOG, L_MPD, "Could not start playback\n"); - } - return 0; } @@ -2362,12 +2350,6 @@ mpd_command_load(struct evbuffer *evbuf, int argc, char **argv, char **errmsg) player_queue_add(items, NULL); - ret = player_playback_start(NULL); - if (ret < 0) - { - DPRINTF(E_LOG, L_MPD, "Could not start playback\n"); - } - return 0; } @@ -2628,12 +2610,6 @@ mpd_command_findadd(struct evbuffer *evbuf, int argc, char **argv, char **errmsg player_queue_add(items, NULL); - ret = player_playback_start(NULL); - if (ret < 0) - { - DPRINTF(E_LOG, L_MPD, "Could not start playback\n"); - } - return 0; } @@ -3263,12 +3239,6 @@ mpd_command_searchadd(struct evbuffer *evbuf, int argc, char **argv, char **errm player_queue_add(items, NULL); - ret = player_playback_start(NULL); - if (ret < 0) - { - DPRINTF(E_LOG, L_MPD, "Could not start playback\n"); - } - return 0; }