summaryrefslogtreecommitdiffstats
path: root/meta-multimedia
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-03-07 19:08:16 -0800
committerKhem Raj <raj.khem@gmail.com>2024-03-08 10:07:29 -0800
commit22c255b2e9bb8a8a97ded018f5ee0bc702b11f6f (patch)
treed5d66f941dc467523f1020ab42db912946d471ef /meta-multimedia
parentfe52d23b15e4334e4501499f0ca9ff74afb2877d (diff)
downloadmeta-openembedded-22c255b2e9bb8a8a97ded018f5ee0bc702b11f6f.tar.gz
vlc: Upgrade to 3.0.20
Fix build with taglib 2.0 Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-multimedia')
-rw-r--r--meta-multimedia/recipes-multimedia/vlc/vlc/0001-make-opencv-configurable.patch2
-rw-r--r--meta-multimedia/recipes-multimedia/vlc/vlc/0002-use-vorbisidec.patch2
-rw-r--r--meta-multimedia/recipes-multimedia/vlc/vlc/0004-Use-packageconfig-to-detect-mmal-support.patch2
-rw-r--r--meta-multimedia/recipes-multimedia/vlc/vlc/0005-ioctl-does-not-have-same-signature-between-glibc-and.patch11
-rw-r--r--meta-multimedia/recipes-multimedia/vlc/vlc/0006-configure-Disable-incompatible-function-pointer-type.patch7
-rw-r--r--meta-multimedia/recipes-multimedia/vlc/vlc/taglib-2.patch67
-rw-r--r--meta-multimedia/recipes-multimedia/vlc/vlc_3.0.20.bb (renamed from meta-multimedia/recipes-multimedia/vlc/vlc_3.0.18.bb)7
7 files changed, 76 insertions, 22 deletions
diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc/0001-make-opencv-configurable.patch b/meta-multimedia/recipes-multimedia/vlc/vlc/0001-make-opencv-configurable.patch
index cc65af009..d6ff0b2db 100644
--- a/meta-multimedia/recipes-multimedia/vlc/vlc/0001-make-opencv-configurable.patch
+++ b/meta-multimedia/recipes-multimedia/vlc/vlc/0001-make-opencv-configurable.patch
@@ -7,7 +7,7 @@ Signed-off-by: Tim Orling <TicoTimo@gmail.com>
7 7
8--- a/configure.ac 8--- a/configure.ac
9+++ b/configure.ac 9+++ b/configure.ac
10@@ -1892,7 +1892,16 @@ PKG_ENABLE_MODULES_VLC([BLURAY], [libblu 10@@ -1891,7 +1891,16 @@ PKG_ENABLE_MODULES_VLC([BLURAY], [libblu
11 dnl 11 dnl
12 dnl OpenCV wrapper and example filters 12 dnl OpenCV wrapper and example filters
13 dnl 13 dnl
diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc/0002-use-vorbisidec.patch b/meta-multimedia/recipes-multimedia/vlc/vlc/0002-use-vorbisidec.patch
index 8ecddd33c..f68da3360 100644
--- a/meta-multimedia/recipes-multimedia/vlc/vlc/0002-use-vorbisidec.patch
+++ b/meta-multimedia/recipes-multimedia/vlc/vlc/0002-use-vorbisidec.patch
@@ -6,7 +6,7 @@ Signed-off-by: Tim Orling <TicoTimo@gmail.com>
6 6
7--- a/modules/codec/Makefile.am 7--- a/modules/codec/Makefile.am
8+++ b/modules/codec/Makefile.am 8+++ b/modules/codec/Makefile.am
9@@ -321,7 +321,7 @@ codec_LTLIBRARIES += $(LTLIBdaala) 9@@ -324,7 +324,7 @@ codec_LTLIBRARIES += $(LTLIBdaala)
10 libtremor_plugin_la_SOURCES = codec/vorbis.c 10 libtremor_plugin_la_SOURCES = codec/vorbis.c
11 libtremor_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_tremor 11 libtremor_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_tremor
12 libtremor_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)' 12 libtremor_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc/0004-Use-packageconfig-to-detect-mmal-support.patch b/meta-multimedia/recipes-multimedia/vlc/vlc/0004-Use-packageconfig-to-detect-mmal-support.patch
index b9f5ad591..6659a44a0 100644
--- a/meta-multimedia/recipes-multimedia/vlc/vlc/0004-Use-packageconfig-to-detect-mmal-support.patch
+++ b/meta-multimedia/recipes-multimedia/vlc/vlc/0004-Use-packageconfig-to-detect-mmal-support.patch
@@ -16,7 +16,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
16 16
17--- a/configure.ac 17--- a/configure.ac
18+++ b/configure.ac 18+++ b/configure.ac
19@@ -3461,27 +3461,18 @@ AC_ARG_ENABLE(mmal, 19@@ -3460,27 +3460,18 @@ AC_ARG_ENABLE(mmal,
20 AS_HELP_STRING([--enable-mmal], 20 AS_HELP_STRING([--enable-mmal],
21 [Multi-Media Abstraction Layer (MMAL) hardware plugin (default enable)])) 21 [Multi-Media Abstraction Layer (MMAL) hardware plugin (default enable)]))
22 if test "${enable_mmal}" != "no"; then 22 if test "${enable_mmal}" != "no"; then
diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc/0005-ioctl-does-not-have-same-signature-between-glibc-and.patch b/meta-multimedia/recipes-multimedia/vlc/vlc/0005-ioctl-does-not-have-same-signature-between-glibc-and.patch
index cbf4f2b91..89e7d585d 100644
--- a/meta-multimedia/recipes-multimedia/vlc/vlc/0005-ioctl-does-not-have-same-signature-between-glibc-and.patch
+++ b/meta-multimedia/recipes-multimedia/vlc/vlc/0005-ioctl-does-not-have-same-signature-between-glibc-and.patch
@@ -10,11 +10,9 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
10 modules/access/v4l2/v4l2.h | 4 ++++ 10 modules/access/v4l2/v4l2.h | 4 ++++
11 2 files changed, 8 insertions(+) 11 2 files changed, 8 insertions(+)
12 12
13diff --git a/modules/access/v4l2/lib.c b/modules/access/v4l2/lib.c
14index b212e1bc5f..ff7c66bf35 100644
15--- a/modules/access/v4l2/lib.c 13--- a/modules/access/v4l2/lib.c
16+++ b/modules/access/v4l2/lib.c 14+++ b/modules/access/v4l2/lib.c
17@@ -43,7 +43,11 @@ int (*v4l2_fd_open) (int, int) = fd_open; 15@@ -49,7 +49,11 @@ int (*v4l2_fd_open) (int, int) = fd_open
18 //int (*v4l2_open) (const char *, int, ...) = open; 16 //int (*v4l2_open) (const char *, int, ...) = open;
19 //int (*v4l2_dup) (const char *, int, ...) = dup; 17 //int (*v4l2_dup) (const char *, int, ...) = dup;
20 int (*v4l2_close) (int) = close; 18 int (*v4l2_close) (int) = close;
@@ -26,11 +24,9 @@ index b212e1bc5f..ff7c66bf35 100644
26 ssize_t (*v4l2_read) (int, void *, size_t) = read; 24 ssize_t (*v4l2_read) (int, void *, size_t) = read;
27 //ssize_t (*v4l2_write) (int, const void *, size_t) = write; 25 //ssize_t (*v4l2_write) (int, const void *, size_t) = write;
28 void * (*v4l2_mmap) (void *, size_t, int, int, int, int64_t) = mmap; 26 void * (*v4l2_mmap) (void *, size_t, int, int, int, int64_t) = mmap;
29diff --git a/modules/access/v4l2/v4l2.h b/modules/access/v4l2/v4l2.h
30index ac4562e269..727e83e9b1 100644
31--- a/modules/access/v4l2/v4l2.h 27--- a/modules/access/v4l2/v4l2.h
32+++ b/modules/access/v4l2/v4l2.h 28+++ b/modules/access/v4l2/v4l2.h
33@@ -23,7 +23,11 @@ 29@@ -28,7 +28,11 @@
34 /* libv4l2 functions */ 30 /* libv4l2 functions */
35 extern int (*v4l2_fd_open) (int, int); 31 extern int (*v4l2_fd_open) (int, int);
36 extern int (*v4l2_close) (int); 32 extern int (*v4l2_close) (int);
@@ -42,6 +38,3 @@ index ac4562e269..727e83e9b1 100644
42 extern ssize_t (*v4l2_read) (int, void *, size_t); 38 extern ssize_t (*v4l2_read) (int, void *, size_t);
43 extern void * (*v4l2_mmap) (void *, size_t, int, int, int, int64_t); 39 extern void * (*v4l2_mmap) (void *, size_t, int, int, int, int64_t);
44 extern int (*v4l2_munmap) (void *, size_t); 40 extern int (*v4l2_munmap) (void *, size_t);
45--
462.39.2
47
diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc/0006-configure-Disable-incompatible-function-pointer-type.patch b/meta-multimedia/recipes-multimedia/vlc/vlc/0006-configure-Disable-incompatible-function-pointer-type.patch
index 4128db1ae..b158328aa 100644
--- a/meta-multimedia/recipes-multimedia/vlc/vlc/0006-configure-Disable-incompatible-function-pointer-type.patch
+++ b/meta-multimedia/recipes-multimedia/vlc/vlc/0006-configure-Disable-incompatible-function-pointer-type.patch
@@ -10,11 +10,9 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
10 configure.ac | 5 +++++ 10 configure.ac | 5 +++++
11 1 file changed, 5 insertions(+) 11 1 file changed, 5 insertions(+)
12 12
13diff --git a/configure.ac b/configure.ac
14index 9f1c099e13..8e45a05808 100644
15--- a/configure.ac 13--- a/configure.ac
16+++ b/configure.ac 14+++ b/configure.ac
17@@ -98,6 +98,11 @@ AS_IF([test -n "${with_binary_version}"],[ 15@@ -98,6 +98,11 @@ AS_IF([test -n "${with_binary_version}"]
18 dnl Prevent clang from accepting unknown flags with a mere warning 16 dnl Prevent clang from accepting unknown flags with a mere warning
19 AX_APPEND_COMPILE_FLAGS([-Werror=unknown-warning-option -Werror=invalid-command-line-argument], [CFLAGS]) 17 AX_APPEND_COMPILE_FLAGS([-Werror=unknown-warning-option -Werror=invalid-command-line-argument], [CFLAGS])
20 AX_APPEND_COMPILE_FLAGS([-Werror=unknown-warning-option -Werror=invalid-command-line-argument], [CXXFLAGS]) 18 AX_APPEND_COMPILE_FLAGS([-Werror=unknown-warning-option -Werror=invalid-command-line-argument], [CXXFLAGS])
@@ -26,6 +24,3 @@ index 9f1c099e13..8e45a05808 100644
26 24
27 dnl 25 dnl
28 dnl Check the operating system 26 dnl Check the operating system
29--
302.39.2
31
diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc/taglib-2.patch b/meta-multimedia/recipes-multimedia/vlc/vlc/taglib-2.patch
new file mode 100644
index 000000000..f238ff424
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/vlc/vlc/taglib-2.patch
@@ -0,0 +1,67 @@
1Fix build with taglib 2.0
2
3Source: https://gitlab.archlinux.org/archlinux/packaging/packages/vlc/-/blob/main/taglib-2.patch?ref_type=heads
4Upstream-Status: Pending
5Signed-off-by: Khem Raj <raj.khem@gmail.com>
6
7--- a/modules/meta_engine/taglib.cpp
8+++ b/modules/meta_engine/taglib.cpp
9@@ -185,7 +185,7 @@ public:
10 ByteVector res(length, 0);
11 ssize_t i_read = vlc_stream_Read( m_stream, res.data(), length);
12 if (i_read < 0)
13- return ByteVector::null;
14+ return ByteVector();
15 else if ((size_t)i_read != length)
16 res.resize(i_read);
17 return res;
18@@ -465,7 +465,7 @@ static void ReadMetaFromASF( ASF::Tag* t
19 static void ReadMetaFromBasicTag(const Tag* tag, vlc_meta_t *dest)
20 {
21 #define SET( accessor, meta ) \
22- if( !tag->accessor().isNull() && !tag->accessor().isEmpty() ) \
23+ if( !tag->accessor().isEmpty() ) \
24 vlc_meta_Set##meta( dest, tag->accessor().toCString(true) )
25 #define SETINT( accessor, meta ) \
26 if( tag->accessor() ) \
27@@ -806,15 +806,15 @@ static void ReadMetaFromMP4( MP4::Tag* t
28 {
29 MP4::Item list;
30 #define SET( keyName, metaName ) \
31- if( tag->itemListMap().contains(keyName) ) \
32+ if( tag->itemMap().contains(keyName) ) \
33 { \
34- list = tag->itemListMap()[keyName]; \
35+ list = tag->itemMap()[keyName]; \
36 vlc_meta_Set##metaName( p_meta, list.toStringList().front().toCString( true ) ); \
37 }
38 #define SET_EXTRA( keyName, metaName ) \
39- if( tag->itemListMap().contains(keyName) ) \
40+ if( tag->itemMap().contains(keyName) ) \
41 { \
42- list = tag->itemListMap()[keyName]; \
43+ list = tag->itemMap()[keyName]; \
44 vlc_meta_AddExtra( p_meta, metaName, list.toStringList().front().toCString( true ) ); \
45 }
46
47@@ -824,9 +824,9 @@ static void ReadMetaFromMP4( MP4::Tag* t
48 #undef SET
49 #undef SET_EXTRA
50
51- if( tag->itemListMap().contains("covr") )
52+ if( tag->itemMap().contains("covr") )
53 {
54- MP4::CoverArtList list = tag->itemListMap()["covr"].toCoverArtList();
55+ MP4::CoverArtList list = tag->itemMap()["covr"].toCoverArtList();
56 const char *psz_format = list[0].format() == MP4::CoverArt::PNG ? "image/png" : "image/jpeg";
57
58 msg_Dbg( p_demux_meta, "Found embedded art (%s) is %i bytes",
59@@ -1337,7 +1337,7 @@ static int WriteMeta( vlc_object_t *p_th
60 if( RIFF::AIFF::File* riff_aiff = dynamic_cast<RIFF::AIFF::File*>(f.file()) )
61 WriteMetaToId3v2( riff_aiff->tag(), p_item );
62 else if( RIFF::WAV::File* riff_wav = dynamic_cast<RIFF::WAV::File*>(f.file()) )
63- WriteMetaToId3v2( riff_wav->tag(), p_item );
64+ WriteMetaToId3v2( riff_wav->ID3v2Tag(), p_item );
65 }
66 else if( TrueAudio::File* trueaudio = dynamic_cast<TrueAudio::File*>(f.file()) )
67 {
diff --git a/meta-multimedia/recipes-multimedia/vlc/vlc_3.0.18.bb b/meta-multimedia/recipes-multimedia/vlc/vlc_3.0.20.bb
index 12b32879a..85af2f9bb 100644
--- a/meta-multimedia/recipes-multimedia/vlc/vlc_3.0.18.bb
+++ b/meta-multimedia/recipes-multimedia/vlc/vlc_3.0.20.bb
@@ -16,17 +16,16 @@ DEPENDS = "coreutils-native fribidi libtool libgcrypt libgcrypt-native bison-nat
16LDFLAGS:append:riscv64 = " -latomic" 16LDFLAGS:append:riscv64 = " -latomic"
17LDFLAGS:append:riscv32 = " -latomic" 17LDFLAGS:append:riscv32 = " -latomic"
18 18
19SRC_URI = "git://github.com/videolan/vlc.git;protocol=https;branch=3.0.x \ 19SRC_URI = "https://get.videolan.org/${BPN}/${PV}/${BP}.tar.xz \
20 file://0001-make-opencv-configurable.patch \ 20 file://0001-make-opencv-configurable.patch \
21 file://0002-use-vorbisidec.patch \ 21 file://0002-use-vorbisidec.patch \
22 file://0003-fix-luaL-checkint.patch \ 22 file://0003-fix-luaL-checkint.patch \
23 file://0004-Use-packageconfig-to-detect-mmal-support.patch \ 23 file://0004-Use-packageconfig-to-detect-mmal-support.patch \
24 file://0005-ioctl-does-not-have-same-signature-between-glibc-and.patch \ 24 file://0005-ioctl-does-not-have-same-signature-between-glibc-and.patch \
25 file://0006-configure-Disable-incompatible-function-pointer-type.patch \ 25 file://0006-configure-Disable-incompatible-function-pointer-type.patch \
26 file://0001-po-Fix-invalid-.oc-translation-format-string.patch \ 26 file://taglib-2.patch \
27" 27"
28SRCREV = "e9eceaed4d838dbd84638bfb2e4bdd08294163b1" 28SRC_URI[sha256sum] = "adc7285b4d2721cddf40eb5270cada2aaa10a334cb546fd55a06353447ba29b5"
29S = "${WORKDIR}/git"
30 29
31inherit autotools-brokensep features_check gettext pkgconfig mime-xdg 30inherit autotools-brokensep features_check gettext pkgconfig mime-xdg
32 31