aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist_save.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-04 16:23:33 +0100
committerMax Kellermann <max@duempel.org>2009-01-04 16:23:33 +0100
commit17d8bdb427eb179b06bff8f9229decafc93de1d6 (patch)
tree0c8c0d0b47bd79ff0db8cee90c5838ec16bb0da9 /src/playlist_save.c
parent7d87f71d830c62714c67af4728455b57241c90e7 (diff)
downloadmpd-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 'src/playlist_save.c')
-rw-r--r--src/playlist_save.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/playlist_save.c b/src/playlist_save.c
index 4c9d0b2f4..dbe389a96 100644
--- a/src/playlist_save.c
+++ b/src/playlist_save.c
@@ -50,7 +50,7 @@ playlist_print_uri(FILE *file, const char *uri)
char tmp[MPD_PATH_MAX];
char *s;
- if (playlist_saveAbsolutePaths && !isRemoteUrl(uri) &&
+ if (playlist_saveAbsolutePaths && !uri_has_scheme(uri) &&
uri[0] != '/')
s = map_uri_fs(uri);
else