aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-14 14:33:19 +0100
committerMax Kellermann <max@duempel.org>2009-03-14 14:33:19 +0100
commit7b53504a419b11dbb76539352c855378665bff68 (patch)
treeab8cfea2631c7949421a4d348850b3fb630131c3 /src/command.c
parent0007d84d956b2a0623b234b23fd12878276e052b (diff)
downloadmpd-7b53504a419b11dbb76539352c855378665bff68.tar.gz
mpd-7b53504a419b11dbb76539352c855378665bff68.tar.xz
mpd-7b53504a419b11dbb76539352c855378665bff68.zip
command: handle the addToPlaylist() result properly
addToPlaylist() has a "enum playlist_result" return value. Convert that to "enum command_return" properly.
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index 2c7f2b3d4..643473b17 100644
--- a/src/command.c
+++ b/src/command.c
@@ -562,7 +562,8 @@ handle_add(struct client *client, G_GNUC_UNUSED int argc, char *argv[])
return COMMAND_RETURN_ERROR;
}
- return addToPlaylist(&g_playlist, uri, NULL);
+ result = addToPlaylist(&g_playlist, uri, NULL);
+ return print_playlist_result(client, result);
}
result = addAllIn(uri);