command: handle the addToPlaylist() result properly

addToPlaylist() has a "enum playlist_result" return value.  Convert
that to "enum command_return" properly.
This commit is contained in:
Max Kellermann
2009-03-14 14:33:19 +01:00
parent 0007d84d95
commit 7b53504a41

View File

@@ -562,7 +562,8 @@ handle_add(struct client *client, G_GNUC_UNUSED int argc, char *argv[])
return COMMAND_RETURN_ERROR; 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); result = addAllIn(uri);