diff options
author | Max Kellermann <max@duempel.org> | 2014-10-02 18:53:55 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-10-02 22:02:11 +0200 |
commit | 44d2d9b1e83d5f7a1a295f9b4f7696d5d7902c14 (patch) | |
tree | 8208cafe76e564ce00df322584ea8d454681e0d5 /src/playlist/PlaylistStream.hxx | |
parent | 8302ed44aa4918a647bdbe8bf69fb3d92833a427 (diff) | |
download | mpd-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/PlaylistStream.hxx')
-rw-r--r-- | src/playlist/PlaylistStream.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/playlist/PlaylistStream.hxx b/src/playlist/PlaylistStream.hxx index 02f5485ef..c07ae0b09 100644 --- a/src/playlist/PlaylistStream.hxx +++ b/src/playlist/PlaylistStream.hxx @@ -25,18 +25,19 @@ class Mutex; class Cond; class SongEnumerator; +class Path; /** * Opens a playlist from a local file. * - * @param path_fs the path of the playlist file + * @param path the path of the playlist file * @param is_r on success, an input_stream object is returned here, * which must be closed after the playlist_provider object is freed * @return a playlist, or nullptr on error */ gcc_nonnull_all SongEnumerator * -playlist_open_path(const char *path_fs, Mutex &mutex, Cond &cond); +playlist_open_path(Path path, Mutex &mutex, Cond &cond); gcc_nonnull_all SongEnumerator * |