diff options
author | Max Kellermann <max@duempel.org> | 2009-01-04 19:11:24 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-13 23:08:34 +0100 |
commit | eee8bba78de8eba50f7cc7ca828ca06ed89c5893 (patch) | |
tree | 27398db999dca64844e1052d1cb95df1b1cb2f65 /src/playlist.c | |
parent | 63181233bb2a28ccd3776d48aa2229df920c2ed3 (diff) | |
download | mpd-eee8bba78de8eba50f7cc7ca828ca06ed89c5893.tar.gz mpd-eee8bba78de8eba50f7cc7ca828ca06ed89c5893.tar.xz mpd-eee8bba78de8eba50f7cc7ca828ca06ed89c5893.zip |
playlist: log errors during loadPlaylist()
Don't call command_error() if loading a song from the playlist fails.
This may result in assertion failures, since command_error() may be
called more than once.
Diffstat (limited to 'src/playlist.c')
-rw-r--r-- | src/playlist.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/playlist.c b/src/playlist.c index ba69844de..5ad3ffe27 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -1308,7 +1308,7 @@ int PlaylistInfo(struct client *client, const char *utf8file, int detail) return 0; } -enum playlist_result loadPlaylist(struct client *client, const char *utf8file) +enum playlist_result loadPlaylist(const char *utf8file) { GPtrArray *list; @@ -1327,8 +1327,7 @@ enum playlist_result loadPlaylist(struct client *client, const char *utf8file) p++; } if ((addToPlaylist(temp, NULL)) != PLAYLIST_RESULT_SUCCESS) { - command_error(client, ACK_ERROR_PLAYLIST_LOAD, - "can't add file \"%s\"", temp2); + g_warning("can't add file \"%s\"", temp2); } free(temp2); } |