aboutsummaryrefslogtreecommitdiff
path: root/src/PlaylistCommands.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-04 23:07:11 +0100
committerMax Kellermann <max@duempel.org>2013-01-04 23:07:11 +0100
commitfe8e77e556999fcaeaab1bb4a3555fd72529e2e0 (patch)
tree05e7c25e2d78dd9fe32bc5f403040b99cbb85797 /src/PlaylistCommands.cxx
parentb0833084a6e8f13faead5dfda92786a2b0f9e02e (diff)
Client: add "playlist" attribute
Reduce access to the global variable "g_playlist".
Diffstat (limited to 'src/PlaylistCommands.cxx')
-rw-r--r--src/PlaylistCommands.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PlaylistCommands.cxx b/src/PlaylistCommands.cxx
index d8a9b5fc..dc3b3e0d 100644
--- a/src/PlaylistCommands.cxx
+++ b/src/PlaylistCommands.cxx
@@ -56,7 +56,7 @@ handle_save(Client *client, G_GNUC_UNUSED int argc, char *argv[])
{
enum playlist_result result;
- result = spl_save_playlist(argv[1], &g_playlist);
+ result = spl_save_playlist(argv[1], &client->playlist);
return print_playlist_result(client, result);
}
@@ -75,13 +75,13 @@ handle_load(Client *client, int argc, char *argv[])
result = playlist_open_into_queue(argv[1],
start_index, end_index,
- &g_playlist,
+ &client->playlist,
client->player_control, true);
if (result != PLAYLIST_RESULT_NO_SUCH_LIST)
return print_playlist_result(client, result);
GError *error = NULL;
- if (playlist_load_spl(&g_playlist, client->player_control,
+ if (playlist_load_spl(&client->playlist, client->player_control,
argv[1], start_index, end_index,
&error))
return COMMAND_RETURN_OK;