From ad631d563bbbdb4aef8bcaf7f02d009b1bc5d06f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 14 Oct 2013 21:11:20 +0200 Subject: stored_playlist: use fs_charset_to_utf8() for URLs --- src/stored_playlist.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/stored_playlist.c b/src/stored_playlist.c index e84d5e060..86b7ff8c3 100644 --- a/src/stored_playlist.c +++ b/src/stored_playlist.c @@ -287,8 +287,11 @@ spl_load(const char *utf8path, GError **error_r) continue; s = path_utf8; - } else - s = g_strdup(s); + } else { + s = fs_charset_to_utf8(s); + if (s == NULL) + continue; + } g_ptr_array_add(list, s); -- cgit v1.2.3