aboutsummaryrefslogtreecommitdiffstats
path: root/src/QueueCommands.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/QueueCommands.cxx11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/QueueCommands.cxx b/src/QueueCommands.cxx
index c47454e08..5dac6a8a0 100644
--- a/src/QueueCommands.cxx
+++ b/src/QueueCommands.cxx
@@ -246,18 +246,13 @@ static enum command_return
handle_playlist_match(struct client *client, int argc, char *argv[],
bool fold_case)
{
- struct locate_item_list *list =
- locate_item_list_parse(argv + 1, argc - 1, fold_case);
-
- if (list == NULL) {
+ SongFilter filter;
+ if (!filter.Parse(argc - 1, argv + 1, fold_case)) {
command_error(client, ACK_ERROR_ARG, "incorrect arguments");
return COMMAND_RETURN_ERROR;
}
- playlist_print_find(client, &g_playlist, list);
-
- locate_item_list_free(list);
-
+ playlist_print_find(client, &g_playlist, filter);
return COMMAND_RETURN_OK;
}