summaryrefslogtreecommitdiff
path: root/src/playlist/plugins/FlacPlaylistPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-08-15 09:44:20 +0200
committerMax Kellermann <max@musicpd.org>2019-08-15 09:44:20 +0200
commitccffff987096b20724461e1b35d0adfbeef1fead (patch)
tree171245ab656ca90e33f4bf8a7ed80587e54c3815 /src/playlist/plugins/FlacPlaylistPlugin.cxx
parente34672c9d8495a403ef65c11e1078247b28de02e (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.cxx2
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;