mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-06 15:20:12 +00:00
vlc: Upgrade to 3.0.20
Fix build with taglib 2.0 Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -7,7 +7,7 @@ Signed-off-by: Tim Orling <TicoTimo@gmail.com>
|
|||||||
|
|
||||||
--- a/configure.ac
|
--- a/configure.ac
|
||||||
+++ b/configure.ac
|
+++ b/configure.ac
|
||||||
@@ -1892,7 +1892,16 @@ PKG_ENABLE_MODULES_VLC([BLURAY], [libblu
|
@@ -1891,7 +1891,16 @@ PKG_ENABLE_MODULES_VLC([BLURAY], [libblu
|
||||||
dnl
|
dnl
|
||||||
dnl OpenCV wrapper and example filters
|
dnl OpenCV wrapper and example filters
|
||||||
dnl
|
dnl
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ Signed-off-by: Tim Orling <TicoTimo@gmail.com>
|
|||||||
|
|
||||||
--- a/modules/codec/Makefile.am
|
--- a/modules/codec/Makefile.am
|
||||||
+++ b/modules/codec/Makefile.am
|
+++ b/modules/codec/Makefile.am
|
||||||
@@ -321,7 +321,7 @@ codec_LTLIBRARIES += $(LTLIBdaala)
|
@@ -324,7 +324,7 @@ codec_LTLIBRARIES += $(LTLIBdaala)
|
||||||
libtremor_plugin_la_SOURCES = codec/vorbis.c
|
libtremor_plugin_la_SOURCES = codec/vorbis.c
|
||||||
libtremor_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_tremor
|
libtremor_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_tremor
|
||||||
libtremor_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
|
libtremor_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|||||||
|
|
||||||
--- a/configure.ac
|
--- a/configure.ac
|
||||||
+++ b/configure.ac
|
+++ b/configure.ac
|
||||||
@@ -3461,27 +3461,18 @@ AC_ARG_ENABLE(mmal,
|
@@ -3460,27 +3460,18 @@ AC_ARG_ENABLE(mmal,
|
||||||
AS_HELP_STRING([--enable-mmal],
|
AS_HELP_STRING([--enable-mmal],
|
||||||
[Multi-Media Abstraction Layer (MMAL) hardware plugin (default enable)]))
|
[Multi-Media Abstraction Layer (MMAL) hardware plugin (default enable)]))
|
||||||
if test "${enable_mmal}" != "no"; then
|
if test "${enable_mmal}" != "no"; then
|
||||||
|
|||||||
+2
-9
@@ -10,11 +10,9 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|||||||
modules/access/v4l2/v4l2.h | 4 ++++
|
modules/access/v4l2/v4l2.h | 4 ++++
|
||||||
2 files changed, 8 insertions(+)
|
2 files changed, 8 insertions(+)
|
||||||
|
|
||||||
diff --git a/modules/access/v4l2/lib.c b/modules/access/v4l2/lib.c
|
|
||||||
index b212e1bc5f..ff7c66bf35 100644
|
|
||||||
--- a/modules/access/v4l2/lib.c
|
--- a/modules/access/v4l2/lib.c
|
||||||
+++ b/modules/access/v4l2/lib.c
|
+++ b/modules/access/v4l2/lib.c
|
||||||
@@ -43,7 +43,11 @@ int (*v4l2_fd_open) (int, int) = fd_open;
|
@@ -49,7 +49,11 @@ int (*v4l2_fd_open) (int, int) = fd_open
|
||||||
//int (*v4l2_open) (const char *, int, ...) = open;
|
//int (*v4l2_open) (const char *, int, ...) = open;
|
||||||
//int (*v4l2_dup) (const char *, int, ...) = dup;
|
//int (*v4l2_dup) (const char *, int, ...) = dup;
|
||||||
int (*v4l2_close) (int) = close;
|
int (*v4l2_close) (int) = close;
|
||||||
@@ -26,11 +24,9 @@ index b212e1bc5f..ff7c66bf35 100644
|
|||||||
ssize_t (*v4l2_read) (int, void *, size_t) = read;
|
ssize_t (*v4l2_read) (int, void *, size_t) = read;
|
||||||
//ssize_t (*v4l2_write) (int, const void *, size_t) = write;
|
//ssize_t (*v4l2_write) (int, const void *, size_t) = write;
|
||||||
void * (*v4l2_mmap) (void *, size_t, int, int, int, int64_t) = mmap;
|
void * (*v4l2_mmap) (void *, size_t, int, int, int, int64_t) = mmap;
|
||||||
diff --git a/modules/access/v4l2/v4l2.h b/modules/access/v4l2/v4l2.h
|
|
||||||
index ac4562e269..727e83e9b1 100644
|
|
||||||
--- a/modules/access/v4l2/v4l2.h
|
--- a/modules/access/v4l2/v4l2.h
|
||||||
+++ b/modules/access/v4l2/v4l2.h
|
+++ b/modules/access/v4l2/v4l2.h
|
||||||
@@ -23,7 +23,11 @@
|
@@ -28,7 +28,11 @@
|
||||||
/* libv4l2 functions */
|
/* libv4l2 functions */
|
||||||
extern int (*v4l2_fd_open) (int, int);
|
extern int (*v4l2_fd_open) (int, int);
|
||||||
extern int (*v4l2_close) (int);
|
extern int (*v4l2_close) (int);
|
||||||
@@ -42,6 +38,3 @@ index ac4562e269..727e83e9b1 100644
|
|||||||
extern ssize_t (*v4l2_read) (int, void *, size_t);
|
extern ssize_t (*v4l2_read) (int, void *, size_t);
|
||||||
extern void * (*v4l2_mmap) (void *, size_t, int, int, int, int64_t);
|
extern void * (*v4l2_mmap) (void *, size_t, int, int, int, int64_t);
|
||||||
extern int (*v4l2_munmap) (void *, size_t);
|
extern int (*v4l2_munmap) (void *, size_t);
|
||||||
--
|
|
||||||
2.39.2
|
|
||||||
|
|
||||||
|
|||||||
+1
-6
@@ -10,11 +10,9 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|||||||
configure.ac | 5 +++++
|
configure.ac | 5 +++++
|
||||||
1 file changed, 5 insertions(+)
|
1 file changed, 5 insertions(+)
|
||||||
|
|
||||||
diff --git a/configure.ac b/configure.ac
|
|
||||||
index 9f1c099e13..8e45a05808 100644
|
|
||||||
--- a/configure.ac
|
--- a/configure.ac
|
||||||
+++ b/configure.ac
|
+++ b/configure.ac
|
||||||
@@ -98,6 +98,11 @@ AS_IF([test -n "${with_binary_version}"],[
|
@@ -98,6 +98,11 @@ AS_IF([test -n "${with_binary_version}"]
|
||||||
dnl Prevent clang from accepting unknown flags with a mere warning
|
dnl Prevent clang from accepting unknown flags with a mere warning
|
||||||
AX_APPEND_COMPILE_FLAGS([-Werror=unknown-warning-option -Werror=invalid-command-line-argument], [CFLAGS])
|
AX_APPEND_COMPILE_FLAGS([-Werror=unknown-warning-option -Werror=invalid-command-line-argument], [CFLAGS])
|
||||||
AX_APPEND_COMPILE_FLAGS([-Werror=unknown-warning-option -Werror=invalid-command-line-argument], [CXXFLAGS])
|
AX_APPEND_COMPILE_FLAGS([-Werror=unknown-warning-option -Werror=invalid-command-line-argument], [CXXFLAGS])
|
||||||
@@ -26,6 +24,3 @@ index 9f1c099e13..8e45a05808 100644
|
|||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Check the operating system
|
dnl Check the operating system
|
||||||
--
|
|
||||||
2.39.2
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,67 @@
|
|||||||
|
Fix build with taglib 2.0
|
||||||
|
|
||||||
|
Source: https://gitlab.archlinux.org/archlinux/packaging/packages/vlc/-/blob/main/taglib-2.patch?ref_type=heads
|
||||||
|
Upstream-Status: Pending
|
||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
|
||||||
|
--- a/modules/meta_engine/taglib.cpp
|
||||||
|
+++ b/modules/meta_engine/taglib.cpp
|
||||||
|
@@ -185,7 +185,7 @@ public:
|
||||||
|
ByteVector res(length, 0);
|
||||||
|
ssize_t i_read = vlc_stream_Read( m_stream, res.data(), length);
|
||||||
|
if (i_read < 0)
|
||||||
|
- return ByteVector::null;
|
||||||
|
+ return ByteVector();
|
||||||
|
else if ((size_t)i_read != length)
|
||||||
|
res.resize(i_read);
|
||||||
|
return res;
|
||||||
|
@@ -465,7 +465,7 @@ static void ReadMetaFromASF( ASF::Tag* t
|
||||||
|
static void ReadMetaFromBasicTag(const Tag* tag, vlc_meta_t *dest)
|
||||||
|
{
|
||||||
|
#define SET( accessor, meta ) \
|
||||||
|
- if( !tag->accessor().isNull() && !tag->accessor().isEmpty() ) \
|
||||||
|
+ if( !tag->accessor().isEmpty() ) \
|
||||||
|
vlc_meta_Set##meta( dest, tag->accessor().toCString(true) )
|
||||||
|
#define SETINT( accessor, meta ) \
|
||||||
|
if( tag->accessor() ) \
|
||||||
|
@@ -806,15 +806,15 @@ static void ReadMetaFromMP4( MP4::Tag* t
|
||||||
|
{
|
||||||
|
MP4::Item list;
|
||||||
|
#define SET( keyName, metaName ) \
|
||||||
|
- if( tag->itemListMap().contains(keyName) ) \
|
||||||
|
+ if( tag->itemMap().contains(keyName) ) \
|
||||||
|
{ \
|
||||||
|
- list = tag->itemListMap()[keyName]; \
|
||||||
|
+ list = tag->itemMap()[keyName]; \
|
||||||
|
vlc_meta_Set##metaName( p_meta, list.toStringList().front().toCString( true ) ); \
|
||||||
|
}
|
||||||
|
#define SET_EXTRA( keyName, metaName ) \
|
||||||
|
- if( tag->itemListMap().contains(keyName) ) \
|
||||||
|
+ if( tag->itemMap().contains(keyName) ) \
|
||||||
|
{ \
|
||||||
|
- list = tag->itemListMap()[keyName]; \
|
||||||
|
+ list = tag->itemMap()[keyName]; \
|
||||||
|
vlc_meta_AddExtra( p_meta, metaName, list.toStringList().front().toCString( true ) ); \
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -824,9 +824,9 @@ static void ReadMetaFromMP4( MP4::Tag* t
|
||||||
|
#undef SET
|
||||||
|
#undef SET_EXTRA
|
||||||
|
|
||||||
|
- if( tag->itemListMap().contains("covr") )
|
||||||
|
+ if( tag->itemMap().contains("covr") )
|
||||||
|
{
|
||||||
|
- MP4::CoverArtList list = tag->itemListMap()["covr"].toCoverArtList();
|
||||||
|
+ MP4::CoverArtList list = tag->itemMap()["covr"].toCoverArtList();
|
||||||
|
const char *psz_format = list[0].format() == MP4::CoverArt::PNG ? "image/png" : "image/jpeg";
|
||||||
|
|
||||||
|
msg_Dbg( p_demux_meta, "Found embedded art (%s) is %i bytes",
|
||||||
|
@@ -1337,7 +1337,7 @@ static int WriteMeta( vlc_object_t *p_th
|
||||||
|
if( RIFF::AIFF::File* riff_aiff = dynamic_cast<RIFF::AIFF::File*>(f.file()) )
|
||||||
|
WriteMetaToId3v2( riff_aiff->tag(), p_item );
|
||||||
|
else if( RIFF::WAV::File* riff_wav = dynamic_cast<RIFF::WAV::File*>(f.file()) )
|
||||||
|
- WriteMetaToId3v2( riff_wav->tag(), p_item );
|
||||||
|
+ WriteMetaToId3v2( riff_wav->ID3v2Tag(), p_item );
|
||||||
|
}
|
||||||
|
else if( TrueAudio::File* trueaudio = dynamic_cast<TrueAudio::File*>(f.file()) )
|
||||||
|
{
|
||||||
+3
-4
@@ -16,17 +16,16 @@ DEPENDS = "coreutils-native fribidi libtool libgcrypt libgcrypt-native bison-nat
|
|||||||
LDFLAGS:append:riscv64 = " -latomic"
|
LDFLAGS:append:riscv64 = " -latomic"
|
||||||
LDFLAGS:append:riscv32 = " -latomic"
|
LDFLAGS:append:riscv32 = " -latomic"
|
||||||
|
|
||||||
SRC_URI = "git://github.com/videolan/vlc.git;protocol=https;branch=3.0.x \
|
SRC_URI = "https://get.videolan.org/${BPN}/${PV}/${BP}.tar.xz \
|
||||||
file://0001-make-opencv-configurable.patch \
|
file://0001-make-opencv-configurable.patch \
|
||||||
file://0002-use-vorbisidec.patch \
|
file://0002-use-vorbisidec.patch \
|
||||||
file://0003-fix-luaL-checkint.patch \
|
file://0003-fix-luaL-checkint.patch \
|
||||||
file://0004-Use-packageconfig-to-detect-mmal-support.patch \
|
file://0004-Use-packageconfig-to-detect-mmal-support.patch \
|
||||||
file://0005-ioctl-does-not-have-same-signature-between-glibc-and.patch \
|
file://0005-ioctl-does-not-have-same-signature-between-glibc-and.patch \
|
||||||
file://0006-configure-Disable-incompatible-function-pointer-type.patch \
|
file://0006-configure-Disable-incompatible-function-pointer-type.patch \
|
||||||
file://0001-po-Fix-invalid-.oc-translation-format-string.patch \
|
file://taglib-2.patch \
|
||||||
"
|
"
|
||||||
SRCREV = "e9eceaed4d838dbd84638bfb2e4bdd08294163b1"
|
SRC_URI[sha256sum] = "adc7285b4d2721cddf40eb5270cada2aaa10a334cb546fd55a06353447ba29b5"
|
||||||
S = "${WORKDIR}/git"
|
|
||||||
|
|
||||||
inherit autotools-brokensep features_check gettext pkgconfig mime-xdg
|
inherit autotools-brokensep features_check gettext pkgconfig mime-xdg
|
||||||
|
|
||||||
Reference in New Issue
Block a user