diff options
author | Max Kellermann <max@duempel.org> | 2013-10-14 22:38:29 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-14 22:38:29 +0200 |
commit | 9508ea982b8feb012a9d354a7c80005421a854bc (patch) | |
tree | 4c50648506d2ad1bcc5ebbf93138b62074310840 /src/QueueSave.cxx | |
parent | 47d655ea7f0ed9c26ceba4767ef6aa82e434d129 (diff) | |
download | mpd-9508ea982b8feb012a9d354a7c80005421a854bc.tar.gz mpd-9508ea982b8feb012a9d354a7c80005421a854bc.tar.xz mpd-9508ea982b8feb012a9d354a7c80005421a854bc.zip |
fs/Path: add method IsAbsolute()
Diffstat (limited to 'src/QueueSave.cxx')
-rw-r--r-- | src/QueueSave.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/QueueSave.cxx b/src/QueueSave.cxx index 8f22e312f..0c036d963 100644 --- a/src/QueueSave.cxx +++ b/src/QueueSave.cxx @@ -28,6 +28,7 @@ #include "TextFile.hxx" #include "util/UriUtil.hxx" #include "util/Error.hxx" +#include "fs/Path.hxx" #include "Log.hxx" #include <glib.h> @@ -92,7 +93,7 @@ queue_load_song(TextFile &file, const char *line, queue *queue) if (g_str_has_prefix(line, SONG_BEGIN)) { const char *uri = line + sizeof(SONG_BEGIN) - 1; - if (!uri_has_scheme(uri) && !g_path_is_absolute(uri)) + if (!uri_has_scheme(uri) && !Path::IsAbsoluteUTF8(uri)) return; Error error; |