diff options
author | Max Kellermann <max@duempel.org> | 2013-01-04 23:19:46 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-04 23:19:46 +0100 |
commit | bc1e8e01f3e6abaf2c3511ad82535046d6a7b05d (patch) | |
tree | 80608056e427a42f31fc3ec7fb43b16c8ab7d803 /src/QueueCommands.cxx | |
parent | fe8e77e556999fcaeaab1bb4a3555fd72529e2e0 (diff) |
DatabaseQueue: pass playlist object
Don't use the global variable "g_playlist".
Diffstat (limited to 'src/QueueCommands.cxx')
-rw-r--r-- | src/QueueCommands.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/QueueCommands.cxx b/src/QueueCommands.cxx index 55eab3b4..72649444 100644 --- a/src/QueueCommands.cxx +++ b/src/QueueCommands.cxx @@ -70,7 +70,8 @@ handle_add(Client *client, G_GNUC_UNUSED int argc, char *argv[]) } GError *error = NULL; - return findAddIn(client->player_control, uri, nullptr, &error) + return findAddIn(client->playlist, client->player_control, + uri, nullptr, &error) ? COMMAND_RETURN_OK : print_error(client, error); } |