summaryrefslogtreecommitdiff
path: root/src/SongUpdate.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-02-26 13:23:42 +0100
committerMax Kellermann <max@duempel.org>2016-02-26 13:48:38 +0100
commit3d9652ae356f23d645200ca83cdce25ff4fb9690 (patch)
tree8e5508988af542b3018f2b5e7f306ec9b4ccd960 /src/SongUpdate.cxx
parenta9130cb99c7c51f81b641c6a24834063507f0164 (diff)
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
Diffstat (limited to 'src/SongUpdate.cxx')
-rw-r--r--src/SongUpdate.cxx6
1 files changed, 2 insertions, 4 deletions
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;