summaryrefslogtreecommitdiff
path: root/src/UpdateContainer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/UpdateContainer.cxx')
-rw-r--r--src/UpdateContainer.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/UpdateContainer.cxx b/src/UpdateContainer.cxx
index 1d219930f..635006344 100644
--- a/src/UpdateContainer.cxx
+++ b/src/UpdateContainer.cxx
@@ -113,10 +113,7 @@ update_container_file(Directory &directory,
plugin.ScanFile(child_path_fs.c_str(),
add_tag_handler, &tag_builder);
- if (tag_builder.IsDefined())
- song->tag = tag_builder.CommitNew();
- else
- tag_builder.Clear();
+ tag_builder.Commit(song->tag);
db_lock();
contdir->AddSong(song);