playlist/flac: use the NarrowPath for FLAC__metadata_get_streaminfo()
This commit is contained in:
parent
e34672c9d8
commit
ccffff9870
@ -102,7 +102,7 @@ flac_playlist_open_uri(const char *uri,
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
FLAC__StreamMetadata streaminfo;
|
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) {
|
streaminfo.data.stream_info.sample_rate == 0) {
|
||||||
FLAC__metadata_object_delete(cuesheet);
|
FLAC__metadata_object_delete(cuesheet);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user