From ccffff987096b20724461e1b35d0adfbeef1fead Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 15 Aug 2019 09:44:20 +0200 Subject: [PATCH] playlist/flac: use the NarrowPath for FLAC__metadata_get_streaminfo() --- src/playlist/plugins/FlacPlaylistPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playlist/plugins/FlacPlaylistPlugin.cxx b/src/playlist/plugins/FlacPlaylistPlugin.cxx index 41046f940..8049f842c 100644 --- a/src/playlist/plugins/FlacPlaylistPlugin.cxx +++ b/src/playlist/plugins/FlacPlaylistPlugin.cxx @@ -102,7 +102,7 @@ flac_playlist_open_uri(const char *uri, return nullptr; FLAC__StreamMetadata streaminfo; - if (!FLAC__metadata_get_streaminfo(uri, &streaminfo) || + if (!FLAC__metadata_get_streaminfo(narrow_path_fs, &streaminfo) || streaminfo.data.stream_info.sample_rate == 0) { FLAC__metadata_object_delete(cuesheet); return nullptr;