aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist/PlaylistMapper.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-10-02 18:53:55 +0200
committerMax Kellermann <max@duempel.org>2014-10-02 22:02:11 +0200
commit44d2d9b1e83d5f7a1a295f9b4f7696d5d7902c14 (patch)
tree8208cafe76e564ce00df322584ea8d454681e0d5 /src/playlist/PlaylistMapper.cxx
parent8302ed44aa4918a647bdbe8bf69fb3d92833a427 (diff)
downloadmpd-44d2d9b1e83d5f7a1a295f9b4f7696d5d7902c14.tar.gz
mpd-44d2d9b1e83d5f7a1a295f9b4f7696d5d7902c14.tar.xz
mpd-44d2d9b1e83d5f7a1a295f9b4f7696d5d7902c14.zip
PlaylistStream: pass Path instance to playlist_open_path()
Convert filesystem charset to UTF-8 for playlist_list_open_uri(). This fixes one of many remaining charset bugs.
Diffstat (limited to 'src/playlist/PlaylistMapper.cxx')
-rw-r--r--src/playlist/PlaylistMapper.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/playlist/PlaylistMapper.cxx b/src/playlist/PlaylistMapper.cxx
index ad92ea6f1..042a39d34 100644
--- a/src/playlist/PlaylistMapper.cxx
+++ b/src/playlist/PlaylistMapper.cxx
@@ -41,7 +41,7 @@ playlist_open_in_playlist_dir(const char *uri, Mutex &mutex, Cond &cond)
if (path_fs.IsNull())
return nullptr;
- return playlist_open_path(path_fs.c_str(), mutex, cond);
+ return playlist_open_path(path_fs, mutex, cond);
}
#ifdef ENABLE_DATABASE
@@ -61,7 +61,7 @@ playlist_open_in_storage(const char *uri, const Storage *storage,
{
const auto path = storage->MapFS(uri);
if (!path.IsNull())
- return playlist_open_path(path.c_str(), mutex, cond);
+ return playlist_open_path(path, mutex, cond);
}
const auto uri2 = storage->MapUTF8(uri);