From 838f600b575fbe0f877e96a4849e319ce22c735d Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Wed, 21 Aug 2024 16:14:32 +0200 Subject: [PATCH] Fix compilation with taglib 1.11 --- src/tags.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/tags.cpp b/src/tags.cpp index 96704642..d74f56c7 100644 --- a/src/tags.cpp +++ b/src/tags.cpp @@ -302,18 +302,9 @@ bool write(MPD::MutableSong &s) if (f.isNull()) return false; - bool saved = false; if (auto mpeg_file = dynamic_cast(f.file())) { writeID3v2Tags(s, mpeg_file->ID3v2Tag(true)); - // write id3v2.4 tags only - if (!mpeg_file->save(TagLib::MPEG::File::ID3v2, - TagLib::File::StripOthers, - TagLib::ID3v2::v4, - TagLib::File::DoNotDuplicate)) - return false; - // do not call generic save() as it will duplicate tags - saved = true; } else if (auto vorbis_file = dynamic_cast(f.file())) { @@ -330,7 +321,7 @@ bool write(MPD::MutableSong &s) else writeCommonTags(s, f.tag()); - if (!saved && !f.save()) + if (!f.save()) return false; // TODO: move this somewhere else