aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-04 18:59:32 +0100
committerMax Kellermann <max@duempel.org>2009-01-04 18:59:32 +0100
commit8c5470a3db7f36cc50b8f5591c8b1f1410977581 (patch)
tree55c8fc398adc080e46b6c14024cb3c71b5b29b6b /src/playlist.c
parent49ac6fa99672bf012b2ce8b39eae0c89cabb8465 (diff)
downloadmpd-8c5470a3db7f36cc50b8f5591c8b1f1410977581.tar.gz
mpd-8c5470a3db7f36cc50b8f5591c8b1f1410977581.tar.xz
mpd-8c5470a3db7f36cc50b8f5591c8b1f1410977581.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 '')
-rw-r--r--src/playlist.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/playlist.c b/src/playlist.c
index f62e67db2..414e5a63a 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -1333,7 +1333,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;
@@ -1352,8 +1352,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);
}