[vlc-devel] [PATCH] taglib: add m4v support

Steve Lhomme robux4 at videolabs.io
Sat Jan 30 09:26:48 CET 2016


From: Steve Lhomme <robUx4 at gmail.com>

---
 contrib/src/taglib/m4v.patch | 20 ++++++++++++++++++++
 contrib/src/taglib/rules.mak |  1 +
 2 files changed, 21 insertions(+)
 create mode 100644 contrib/src/taglib/m4v.patch

diff --git a/contrib/src/taglib/m4v.patch b/contrib/src/taglib/m4v.patch
new file mode 100644
index 0000000..827b929
--- /dev/null
+++ b/contrib/src/taglib/m4v.patch
@@ -0,0 +1,20 @@
+--- taglib/taglib/fileref.cpp   2015-08-10 18:32:56.961588900 +0200
++++ taglib/taglib/fileref.cpp.m4v       2015-08-12 11:00:44.933793600 +0200
+@@ -160,6 +160,7 @@
+   l.append("m4p");
+   l.append("3g2");
+   l.append("mp4");
++  l.append("m4v");
+   l.append("wma");
+   l.append("asf");
+   l.append("aif");
+@@ -266,7 +267,7 @@
+       return new Ogg::Opus::File(fileName, readAudioProperties, audioPropertiesStyle);
+     if(ext == "TTA")
+       return new TrueAudio::File(fileName, readAudioProperties, audioPropertiesStyle);
+-    if(ext == "M4A" || ext == "M4R" || ext == "M4B" || ext == "M4P" || ext == "MP4" || ext == "3G2")
++    if(ext == "M4A" || ext == "M4R" || ext == "M4B" || ext == "M4P" || ext == "MP4" || ext == "3G2" || ext == "M4V")
+       return new MP4::File(fileName, readAudioProperties, audioPropertiesStyle);
+     if(ext == "WMA" || ext == "ASF")
+       return new ASF::File(fileName, readAudioProperties, audioPropertiesStyle);
+
diff --git a/contrib/src/taglib/rules.mak b/contrib/src/taglib/rules.mak
index 8c6afb4..02ea427 100644
--- a/contrib/src/taglib/rules.mak
+++ b/contrib/src/taglib/rules.mak
@@ -15,6 +15,7 @@ $(TARBALLS)/taglib-$(TAGLIB_VERSION).tar.gz:
 
 taglib: taglib-$(TAGLIB_VERSION).tar.gz .sum-taglib
 	$(UNPACK)
+	$(APPLY) $(SRC)/taglib/m4v.patch
 	$(MOVE)
 
 .taglib: taglib toolchain.cmake
-- 
2.6.0.windows.1



More information about the vlc-devel mailing list