diff options
author | Max Kellermann <max@duempel.org> | 2009-01-04 16:23:33 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-04 16:23:33 +0100 |
commit | 17d8bdb427eb179b06bff8f9229decafc93de1d6 (patch) | |
tree | 0c8c0d0b47bd79ff0db8cee90c5838ec16bb0da9 /src/playlist.c | |
parent | 7d87f71d830c62714c67af4728455b57241c90e7 (diff) | |
download | mpd-17d8bdb427eb179b06bff8f9229decafc93de1d6.tar.gz mpd-17d8bdb427eb179b06bff8f9229decafc93de1d6.tar.xz mpd-17d8bdb427eb179b06bff8f9229decafc93de1d6.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | src/playlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |