fs/Path: add method IsAbsolute()

This commit is contained in:
Max Kellermann
2013-10-14 22:38:29 +02:00
parent 47d655ea7f
commit 9508ea982b
12 changed files with 47 additions and 12 deletions

View File

@@ -246,7 +246,7 @@ LoadPlaylistFile(const char *utf8path, Error &error)
if (!uri_has_scheme(s)) {
uri_utf8 = map_fs_to_utf8(s);
if (uri_utf8.empty()) {
if (g_path_is_absolute(s)) {
if (Path::IsAbsoluteFS(s)) {
uri_utf8 = Path::ToUTF8(s);
if (uri_utf8.empty())
continue;