From 65e56ff8291b4bc43900c7b80a86e6d39ed7a847 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 6 Nov 2009 00:36:32 +0100 Subject: playlist/{m3u,pls}: removed URI checks The caller is responsible for verifying the song URI. --- src/playlist/m3u_playlist_plugin.c | 2 +- src/playlist/pls_playlist_plugin.c | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) (limited to 'src/playlist') diff --git a/src/playlist/m3u_playlist_plugin.c b/src/playlist/m3u_playlist_plugin.c index 6daea41f..db5db99f 100644 --- a/src/playlist/m3u_playlist_plugin.c +++ b/src/playlist/m3u_playlist_plugin.c @@ -64,7 +64,7 @@ m3u_read(struct playlist_provider *_playlist) while (*line != 0 && g_ascii_isspace(*line)) ++line; - } while (line[0] == '#' || !uri_has_scheme(line)); + } while (line[0] == '#' || *line == 0); return song_remote_new(line); } diff --git a/src/playlist/pls_playlist_plugin.c b/src/playlist/pls_playlist_plugin.c index ede057ac..a5d8bbcb 100644 --- a/src/playlist/pls_playlist_plugin.c +++ b/src/playlist/pls_playlist_plugin.c @@ -66,12 +66,6 @@ static void pls_parser(GKeyFile *keyfile, struct pls_playlist *playlist) } g_free(key); - /* Don't load local path */ - if(!uri_has_scheme(value)){ - g_free(value); - continue; - } - song = song_remote_new(value); g_free(value); -- cgit v1.2.3