aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-06 00:36:32 +0100
committerMax Kellermann <max@duempel.org>2009-11-06 00:36:32 +0100
commit65e56ff8291b4bc43900c7b80a86e6d39ed7a847 (patch)
tree3f4164d8503456f1f7359cfc3fb7d5b685b94755 /src
parenta4970c66ef836badd95141bd3f9d3424a1dacdf2 (diff)
downloadmpd-65e56ff8291b4bc43900c7b80a86e6d39ed7a847.tar.gz
mpd-65e56ff8291b4bc43900c7b80a86e6d39ed7a847.tar.xz
mpd-65e56ff8291b4bc43900c7b80a86e6d39ed7a847.zip
playlist/{m3u,pls}: removed URI checks
The caller is responsible for verifying the song URI.
Diffstat (limited to 'src')
-rw-r--r--src/playlist/m3u_playlist_plugin.c2
-rw-r--r--src/playlist/pls_playlist_plugin.c6
2 files changed, 1 insertions, 7 deletions
diff --git a/src/playlist/m3u_playlist_plugin.c b/src/playlist/m3u_playlist_plugin.c
index 6daea41f1..db5db99fc 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 ede057acc..a5d8bbcbe 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);