PlaylistFile: use Path::ToUTF8() instead of PathToUTF8()

This commit is contained in:
Max Kellermann 2015-03-05 08:36:51 +01:00
parent 8f9fe1b11a
commit 59dd8ffbc6

View File

@ -276,7 +276,7 @@ LoadPlaylistFile(const char *utf8path, Error &error)
uri_utf8 = map_fs_to_utf8(path);
if (uri_utf8.empty()) {
if (path.IsAbsolute()) {
uri_utf8 = PathToUTF8(s);
uri_utf8 = path.ToUTF8();
if (uri_utf8.empty())
continue;
} else