From 44d2d9b1e83d5f7a1a295f9b4f7696d5d7902c14 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 2 Oct 2014 18:53:55 +0200 Subject: 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. --- src/playlist/PlaylistStream.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/playlist/PlaylistStream.hxx') 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 * -- cgit v1.2.3