aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlaylistSong.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-14 22:38:29 +0200
committerMax Kellermann <max@duempel.org>2013-10-14 22:38:29 +0200
commit9508ea982b8feb012a9d354a7c80005421a854bc (patch)
tree4c50648506d2ad1bcc5ebbf93138b62074310840 /src/PlaylistSong.cxx
parent47d655ea7f0ed9c26ceba4767ef6aa82e434d129 (diff)
downloadmpd-9508ea982b8feb012a9d354a7c80005421a854bc.tar.gz
mpd-9508ea982b8feb012a9d354a7c80005421a854bc.tar.xz
mpd-9508ea982b8feb012a9d354a7c80005421a854bc.zip
fs/Path: add method IsAbsolute()
Diffstat (limited to 'src/PlaylistSong.cxx')
-rw-r--r--src/PlaylistSong.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PlaylistSong.cxx b/src/PlaylistSong.cxx
index 00735ac60..db6c39b3b 100644
--- a/src/PlaylistSong.cxx
+++ b/src/PlaylistSong.cxx
@@ -98,7 +98,7 @@ playlist_check_load_song(const Song *song, const char *uri, bool secure)
if (uri_has_scheme(uri)) {
dest = Song::NewRemote(uri);
- } else if (g_path_is_absolute(uri) && secure) {
+ } else if (Path::IsAbsoluteUTF8(uri) && secure) {
dest = Song::LoadFile(uri, nullptr);
if (dest == nullptr)
return nullptr;
@@ -147,7 +147,7 @@ playlist_check_translate_song(Song *song, const char *base_uri,
functions */
base_uri = nullptr;
- if (g_path_is_absolute(uri)) {
+ if (Path::IsAbsoluteUTF8(uri)) {
/* XXX fs_charset vs utf8? */
const char *suffix = map_to_relative_path(uri);
assert(suffix != nullptr);