From 17d8bdb427eb179b06bff8f9229decafc93de1d6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 4 Jan 2009 16:23:33 +0100 Subject: playlist: use uri_has_scheme() instead of isRemoteUrl() For internal checks (i.e. not in command.c), we need to check whether an URI is in the databse, in the local file system or a remote URI with a scheme. --- src/playlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/playlist.c') diff --git a/src/playlist.c b/src/playlist.c index 49b3460f0..6a29e8852 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -565,7 +565,7 @@ song_by_url(const char *url) if (song != NULL) return song; - if (isRemoteUrl(url)) + if (uri_has_scheme(url)) return song_remote_new(url); return NULL; -- cgit v1.2.3