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:
parent
0007d84d95
commit
7b53504a41
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue