diff options
author | Max Kellermann <max@musicpd.org> | 2019-08-15 09:44:20 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-08-15 09:44:20 +0200 |
commit | ccffff987096b20724461e1b35d0adfbeef1fead (patch) | |
tree | 171245ab656ca90e33f4bf8a7ed80587e54c3815 /src/playlist/plugins/FlacPlaylistPlugin.cxx | |
parent | e34672c9d8495a403ef65c11e1078247b28de02e (diff) |
playlist/flac: use the NarrowPath for FLAC__metadata_get_streaminfo()
Diffstat (limited to 'src/playlist/plugins/FlacPlaylistPlugin.cxx')
-rw-r--r-- | src/playlist/plugins/FlacPlaylistPlugin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |