playlist/flac: use the NarrowPath for FLAC__metadata_get_streaminfo()

This commit is contained in:
Max Kellermann 2019-08-15 09:44:20 +02:00
parent e34672c9d8
commit ccffff9870

View File

@ -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;