Commit ccffff98 authored by Max Kellermann's avatar Max Kellermann

playlist/flac: use the NarrowPath for FLAC__metadata_get_streaminfo()

parent e34672c9
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment