aboutsummaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorJason E. Hale <jhale@FreeBSD.org>2024-06-06 21:29:17 +0000
committerJason E. Hale <jhale@FreeBSD.org>2024-06-06 23:01:06 +0000
commitc3fbd9e607364a20f141c4dc8dac7334f93a4a94 (patch)
treea60d72d0013d009e17c8e1406d84a18760e761d4 /multimedia
parent2f83aa02c6c9ce25f10577e2f67f5fa588112908 (diff)
downloadports-c3fbd9e607364a20f141c4dc8dac7334f93a4a94.tar.gz
ports-c3fbd9e607364a20f141c4dc8dac7334f93a4a94.zip
multimedia/musikcube: Prepare for Taglib 2.x
PR: 276677
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/musikcube/files/patch-src_plugins_taglib__plugin_TaglibMetadataReader.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/multimedia/musikcube/files/patch-src_plugins_taglib__plugin_TaglibMetadataReader.cpp b/multimedia/musikcube/files/patch-src_plugins_taglib__plugin_TaglibMetadataReader.cpp
new file mode 100644
index 000000000000..15339eb97701
--- /dev/null
+++ b/multimedia/musikcube/files/patch-src_plugins_taglib__plugin_TaglibMetadataReader.cpp
@@ -0,0 +1,17 @@
+Fix build with Taglib 2.x.
+
+Deprecated member function MP4::Tag::itemListMap() was removed.
+
+https://github.com/clangen/musikcube/issues/670
+
+--- src/plugins/taglib_plugin/TaglibMetadataReader.cpp.orig 2023-09-11 02:03:12 UTC
++++ src/plugins/taglib_plugin/TaglibMetadataReader.cpp
+@@ -320,7 +320,7 @@ bool TaglibMetadataReader::ReadGeneric(
+ if (!handled) {
+ const auto mp4File = dynamic_cast<TagLib::MP4::File*>(file.file());
+ if (mp4File && mp4File->hasMP4Tag()) {
+- auto mp4TagMap = static_cast<TagLib::MP4::Tag*>(tag)->itemListMap();
++ auto mp4TagMap = static_cast<TagLib::MP4::Tag*>(tag)->itemMap();
+ this->ExtractValueForKey(mp4TagMap, "aART", "album_artist", target);
+ this->ExtractValueForKey(mp4TagMap, "disk", "disc", target);
+ this->ExtractReplayGain(mp4TagMap, target);