From 3d9652ae356f23d645200ca83cdce25ff4fb9690 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 26 Feb 2016 13:23:42 +0100 Subject: TagStream: add TagBuilder overload with ScanGenericTags() fallback This commit adds support for APE/ID3 tags from NFS/SMB files. See http://bugs.musicpd.org/view.php?id=4270 --- src/SongUpdate.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/SongUpdate.cxx') diff --git a/src/SongUpdate.cxx b/src/SongUpdate.cxx index 46582bf4b..412630d97 100644 --- a/src/SongUpdate.cxx +++ b/src/SongUpdate.cxx @@ -92,8 +92,7 @@ Song::UpdateFile(Storage &storage) if (path_fs.IsNull()) { const auto absolute_uri = storage.MapUTF8(relative_uri.c_str()); - if (!tag_stream_scan(absolute_uri.c_str(), - full_tag_handler, &tag_builder)) + if (!tag_stream_scan(absolute_uri.c_str(), tag_builder)) return false; } else { if (!tag_file_scan(path_fs, tag_builder)) @@ -165,8 +164,7 @@ DetachedSong::Update() return LoadFile(path_fs); } else if (IsRemote()) { TagBuilder tag_builder; - if (!tag_stream_scan(uri.c_str(), full_tag_handler, - &tag_builder)) + if (!tag_stream_scan(uri.c_str(), tag_builder)) return false; mtime = 0; -- cgit v1.2.3