diff options
Diffstat (limited to 'src/PlaylistMapper.cxx')
-rw-r--r-- | src/PlaylistMapper.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PlaylistMapper.cxx b/src/PlaylistMapper.cxx index 96106a4c..d6368150 100644 --- a/src/PlaylistMapper.cxx +++ b/src/PlaylistMapper.cxx @@ -56,11 +56,11 @@ playlist_open_in_playlist_dir(const char *uri, GMutex *mutex, GCond *cond, assert(spl_valid_name(uri)); - const char *playlist_directory_fs = map_spl_path(); - if (playlist_directory_fs == NULL) + const Path &playlist_directory_fs = map_spl_path(); + if (playlist_directory_fs.IsNull()) return NULL; - path_fs = g_build_filename(playlist_directory_fs, uri, NULL); + path_fs = g_build_filename(playlist_directory_fs.c_str(), uri, NULL); struct playlist_provider *playlist = playlist_open_path(path_fs, mutex, cond, is_r); |