Commit 7b53504a authored by Max Kellermann's avatar Max Kellermann

command: handle the addToPlaylist() result properly

addToPlaylist() has a "enum playlist_result" return value. Convert that to "enum command_return" properly.
parent 0007d84d
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment