aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/command.c2
-rw-r--r--src/playlist.c6
-rw-r--r--src/playlist.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/command.c b/src/command.c
index e6fb64a6c..4d703498f 100644
--- a/src/command.c
+++ b/src/command.c
@@ -575,7 +575,7 @@ static int handleLoad(struct client *client, mpd_unused int *permission,
{
enum playlist_result result;
- result = loadPlaylist(client_get_fd(client), argv[1]);
+ result = loadPlaylist(client, argv[1]);
return print_playlist_result(client, result);
}
diff --git a/src/playlist.c b/src/playlist.c
index c512d739b..042907e16 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -1370,7 +1370,7 @@ int PlaylistInfo(struct client *client, const char *utf8file, int detail)
return 0;
}
-enum playlist_result loadPlaylist(int fd, const char *utf8file)
+enum playlist_result loadPlaylist(struct client *client, const char *utf8file)
{
ListNode *node;
List *list;
@@ -1391,8 +1391,8 @@ enum playlist_result loadPlaylist(int fd, const char *utf8file)
p++;
}
if ((addToPlaylist(temp, NULL)) != PLAYLIST_RESULT_SUCCESS) {
- commandError(fd, ACK_ERROR_PLAYLIST_LOAD,
- "can't add file \"%s\"", temp2);
+ command_error(client, ACK_ERROR_PLAYLIST_LOAD,
+ "can't add file \"%s\"", temp2);
}
free(temp2);
}
diff --git a/src/playlist.h b/src/playlist.h
index 4e160cf14..35cbfa171 100644
--- a/src/playlist.h
+++ b/src/playlist.h
@@ -111,7 +111,7 @@ enum playlist_result swapSongsInPlaylist(int song1, int song2);
enum playlist_result swapSongsInPlaylistById(int id1, int id2);
-enum playlist_result loadPlaylist(int fd, const char *utf8file);
+enum playlist_result loadPlaylist(struct client *client, const char *utf8file);
int getPlaylistRepeatStatus(void);