diff options
Diffstat (limited to 'recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad')
4 files changed, 13 insertions, 178 deletions
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-avoid-including-sys-poll.h-directly.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-avoid-including-sys-poll.h-directly.patch deleted file mode 100644 index ead6897f6..000000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-avoid-including-sys-poll.h-directly.patch +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 1 | From 3b05e91720c10fcf6e0e408595b7217f6fa145c2 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Andre McCurdy <armccurdy@gmail.com> | ||
| 3 | Date: Wed, 3 Feb 2016 18:05:41 -0800 | ||
| 4 | Subject: [PATCH 2/4] avoid including <sys/poll.h> directly | ||
| 5 | |||
| 6 | musl libc generates warnings if <sys/poll.h> is included directly. | ||
| 7 | |||
| 8 | Upstream-Status: Pending | ||
| 9 | |||
| 10 | Signed-off-by: Andre McCurdy <armccurdy@gmail.com> | ||
| 11 | --- | ||
| 12 | sys/dvb/gstdvbsrc.c | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/sys/dvb/gstdvbsrc.c b/sys/dvb/gstdvbsrc.c | ||
| 16 | index ca6b92a..b2772db 100644 | ||
| 17 | --- a/sys/dvb/gstdvbsrc.c | ||
| 18 | +++ b/sys/dvb/gstdvbsrc.c | ||
| 19 | @@ -97,7 +97,7 @@ | ||
| 20 | #include <gst/gst.h> | ||
| 21 | #include <gst/glib-compat-private.h> | ||
| 22 | #include <sys/ioctl.h> | ||
| 23 | -#include <sys/poll.h> | ||
| 24 | +#include <poll.h> | ||
| 25 | #include <fcntl.h> | ||
| 26 | #include <errno.h> | ||
| 27 | #include <stdio.h> | ||
| 28 | -- | ||
| 29 | 2.28.0 | ||
| 30 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0003-ensure-valid-sentinals-for-gst_structure_get-etc.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0003-ensure-valid-sentinals-for-gst_structure_get-etc.patch deleted file mode 100644 index 88fbc40dc..000000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0003-ensure-valid-sentinals-for-gst_structure_get-etc.patch +++ /dev/null | |||
| @@ -1,88 +0,0 @@ | |||
| 1 | From 5ed27de9f662fe063b8b3d5d4335aa64cd4718c9 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Andre McCurdy <armccurdy@gmail.com> | ||
| 3 | Date: Tue, 9 Feb 2016 14:00:00 -0800 | ||
| 4 | Subject: [PATCH 3/4] ensure valid sentinals for gst_structure_get() etc | ||
| 5 | |||
| 6 | For GStreamer functions declared with G_GNUC_NULL_TERMINATED, | ||
| 7 | ie __attribute__((__sentinel__)), gcc will generate a warning if the | ||
| 8 | last parameter passed to the function is not NULL (where a valid NULL | ||
| 9 | in this context is defined as zero with any pointer type). | ||
| 10 | |||
| 11 | The C callers to such functions within gst-plugins-bad use the C NULL | ||
| 12 | definition (ie ((void*)0)), which is a valid sentinel. | ||
| 13 | |||
| 14 | However the C++ NULL definition (ie 0L), is not a valid sentinel | ||
| 15 | without an explicit cast to a pointer type. | ||
| 16 | |||
| 17 | Upstream-Status: Pending | ||
| 18 | |||
| 19 | Signed-off-by: Andre McCurdy <armccurdy@gmail.com> | ||
| 20 | --- | ||
| 21 | sys/decklink/gstdecklink.cpp | 10 +++++----- | ||
| 22 | sys/decklink/gstdecklinkaudiosrc.cpp | 2 +- | ||
| 23 | sys/decklink/gstdecklinkvideosink.cpp | 2 +- | ||
| 24 | 3 files changed, 7 insertions(+), 7 deletions(-) | ||
| 25 | |||
| 26 | diff --git a/sys/decklink/gstdecklink.cpp b/sys/decklink/gstdecklink.cpp | ||
| 27 | index 4dac7e1..43762ce 100644 | ||
| 28 | --- a/sys/decklink/gstdecklink.cpp | ||
| 29 | +++ b/sys/decklink/gstdecklink.cpp | ||
| 30 | @@ -674,7 +674,7 @@ gst_decklink_mode_get_generic_structure (GstDecklinkModeEnum e) | ||
| 31 | "pixel-aspect-ratio", GST_TYPE_FRACTION, mode->par_n, mode->par_d, | ||
| 32 | "interlace-mode", G_TYPE_STRING, | ||
| 33 | mode->interlaced ? "interleaved" : "progressive", | ||
| 34 | - "framerate", GST_TYPE_FRACTION, mode->fps_n, mode->fps_d, NULL); | ||
| 35 | + "framerate", GST_TYPE_FRACTION, mode->fps_n, mode->fps_d, (void*)NULL); | ||
| 36 | |||
| 37 | return s; | ||
| 38 | } | ||
| 39 | @@ -699,16 +699,16 @@ gst_decklink_mode_get_structure (GstDecklinkModeEnum e, BMDPixelFormat f, | ||
| 40 | case bmdFormat8BitYUV: /* '2vuy' */ | ||
| 41 | gst_structure_set (s, "format", G_TYPE_STRING, "UYVY", | ||
| 42 | "colorimetry", G_TYPE_STRING, mode->colorimetry, | ||
| 43 | - "chroma-site", G_TYPE_STRING, "mpeg2", NULL); | ||
| 44 | + "chroma-site", G_TYPE_STRING, "mpeg2", (void*)NULL); | ||
| 45 | break; | ||
| 46 | case bmdFormat10BitYUV: /* 'v210' */ | ||
| 47 | - gst_structure_set (s, "format", G_TYPE_STRING, "v210", NULL); | ||
| 48 | + gst_structure_set (s, "format", G_TYPE_STRING, "v210", (void*)NULL); | ||
| 49 | break; | ||
| 50 | case bmdFormat8BitARGB: /* 'ARGB' */ | ||
| 51 | - gst_structure_set (s, "format", G_TYPE_STRING, "ARGB", NULL); | ||
| 52 | + gst_structure_set (s, "format", G_TYPE_STRING, "ARGB", (void*)NULL); | ||
| 53 | break; | ||
| 54 | case bmdFormat8BitBGRA: /* 'BGRA' */ | ||
| 55 | - gst_structure_set (s, "format", G_TYPE_STRING, "BGRA", NULL); | ||
| 56 | + gst_structure_set (s, "format", G_TYPE_STRING, "BGRA", (void*)NULL); | ||
| 57 | break; | ||
| 58 | case bmdFormat10BitRGB: /* 'r210' Big-endian RGB 10-bit per component with SMPTE video levels (64-960). Packed as 2:10:10:10 */ | ||
| 59 | case bmdFormat12BitRGB: /* 'R12B' Big-endian RGB 12-bit per component with full range (0-4095). Packed as 12-bit per component */ | ||
| 60 | diff --git a/sys/decklink/gstdecklinkaudiosrc.cpp b/sys/decklink/gstdecklinkaudiosrc.cpp | ||
| 61 | index 2fef934..c47229a 100644 | ||
| 62 | --- a/sys/decklink/gstdecklinkaudiosrc.cpp | ||
| 63 | +++ b/sys/decklink/gstdecklinkaudiosrc.cpp | ||
| 64 | @@ -379,7 +379,7 @@ gst_decklink_audio_src_start (GstDecklinkAudioSrc * self) | ||
| 65 | g_mutex_unlock (&self->input->lock); | ||
| 66 | |||
| 67 | if (videosrc) { | ||
| 68 | - g_object_get (videosrc, "connection", &vconn, NULL); | ||
| 69 | + g_object_get (videosrc, "connection", &vconn, (void *) NULL); | ||
| 70 | gst_object_unref (videosrc); | ||
| 71 | |||
| 72 | switch (vconn) { | ||
| 73 | diff --git a/sys/decklink/gstdecklinkvideosink.cpp b/sys/decklink/gstdecklinkvideosink.cpp | ||
| 74 | index e3a6775..f1a5aae 100644 | ||
| 75 | --- a/sys/decklink/gstdecklinkvideosink.cpp | ||
| 76 | +++ b/sys/decklink/gstdecklinkvideosink.cpp | ||
| 77 | @@ -286,7 +286,7 @@ reset_framerate (GstCapsFeatures * features, GstStructure * structure, | ||
| 78 | gpointer user_data) | ||
| 79 | { | ||
| 80 | gst_structure_set (structure, "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, | ||
| 81 | - G_MAXINT, 1, NULL); | ||
| 82 | + G_MAXINT, 1, (void *) NULL); | ||
| 83 | |||
| 84 | return TRUE; | ||
| 85 | } | ||
| 86 | -- | ||
| 87 | 2.28.0 | ||
| 88 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch index b81670906..029b80e17 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | From f19ff66640f2f472c4e9d9055253032d34e125c6 Mon Sep 17 00:00:00 2001 | 1 | From 3bc5d48257032b6bbee532aad15062fbbcc43bfe Mon Sep 17 00:00:00 2001 |
| 2 | From: Andrey Zhizhikin <andrey.z@gmail.com> | 2 | From: Andrey Zhizhikin <andrey.z@gmail.com> |
| 3 | Date: Mon, 27 Jan 2020 10:22:35 +0000 | 3 | Date: Mon, 27 Jan 2020 10:22:35 +0000 |
| 4 | Subject: [PATCH 4/4] opencv: resolve missing opencv data dir in yocto build | 4 | Subject: [PATCH] opencv: resolve missing opencv data dir in yocto build |
| 5 | 5 | ||
| 6 | When Yocto build is performed, opencv searches for data dir using simple | 6 | When Yocto build is performed, opencv searches for data dir using simple |
| 7 | 'test' command, this fails because pkg-config provides an absolute | 7 | 'test' command, this fails because pkg-config provides an absolute |
| @@ -11,39 +11,23 @@ in order for the 'test' utility to pick up the absolute path. | |||
| 11 | Upstream-Status: Inappropriate [OE-specific] | 11 | Upstream-Status: Inappropriate [OE-specific] |
| 12 | 12 | ||
| 13 | Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com> | 13 | Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com> |
| 14 | Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> | ||
| 15 | |||
| 14 | --- | 16 | --- |
| 15 | ext/opencv/meson.build | 7 ++++--- | 17 | ext/opencv/meson.build | 3 +++ |
| 16 | 1 file changed, 4 insertions(+), 3 deletions(-) | 18 | 1 file changed, 3 insertions(+) |
| 17 | 19 | ||
| 18 | diff --git a/ext/opencv/meson.build b/ext/opencv/meson.build | 20 | diff --git a/ext/opencv/meson.build b/ext/opencv/meson.build |
| 19 | index 0b0b3fc..0ed3344 100644 | 21 | index 1d86b90..b5c8b95 100644 |
| 20 | --- a/ext/opencv/meson.build | 22 | --- a/ext/opencv/meson.build |
| 21 | +++ b/ext/opencv/meson.build | 23 | +++ b/ext/opencv/meson.build |
| 22 | @@ -78,20 +78,21 @@ else | 24 | @@ -87,6 +87,9 @@ if opencv_found |
| 23 | endif | 25 | opencv_prefix = opencv_dep.get_variable('prefix') |
| 24 | |||
| 25 | if opencv_found | ||
| 26 | + pkgconf_sysroot = run_command(python3, '-c', 'import os; print(os.environ.get("PKG_CONFIG_SYSROOT_DIR"))').stdout().strip() | ||
| 27 | opencv_prefix = opencv_dep.get_pkgconfig_variable('prefix') | ||
| 28 | gstopencv_cargs += ['-DOPENCV_PREFIX="' + opencv_prefix + '"'] | 26 | gstopencv_cargs += ['-DOPENCV_PREFIX="' + opencv_prefix + '"'] |
| 29 | 27 | ||
| 28 | + pkgconf_sysroot = run_command(python3, '-c', 'import os; print(os.environ.get("PKG_CONFIG_SYSROOT_DIR"))').stdout().strip() | ||
| 29 | + opencv_prefix = pkgconf_sysroot + opencv_prefix | ||
| 30 | + | ||
| 30 | # Check the data dir used by opencv for its xml data files | 31 | # Check the data dir used by opencv for its xml data files |
| 31 | # Use prefix from pkg-config to be compatible with cross-compilation | 32 | # Use prefix from pkg-config to be compatible with cross-compilation |
| 32 | - r = run_command('test', '-d', opencv_prefix + '/share/opencv') | 33 | r = run_command('test', '-d', opencv_prefix + '/share/opencv', check: false) |
| 33 | + r = run_command('test', '-d', pkgconf_sysroot + opencv_prefix + '/share/opencv') | ||
| 34 | if r.returncode() == 0 | ||
| 35 | gstopencv_cargs += '-DOPENCV_PATH_NAME="opencv"' | ||
| 36 | else | ||
| 37 | - r = run_command('test', '-d', opencv_prefix + '/share/OpenCV') | ||
| 38 | + r = run_command('test', '-d', pkgconf_sysroot + opencv_prefix + '/share/OpenCV') | ||
| 39 | if r.returncode() == 0 | ||
| 40 | gstopencv_cargs += '-DOPENCV_PATH_NAME="OpenCV"' | ||
| 41 | else | ||
| 42 | - r = run_command('test', '-d', opencv_prefix + '/share/opencv4') | ||
| 43 | + r = run_command('test', '-d', pkgconf_sysroot + opencv_prefix + '/share/opencv4') | ||
| 44 | if r.returncode() == 0 | ||
| 45 | gstopencv_cargs += '-DOPENCV_PATH_NAME="opencv4"' | ||
| 46 | else | ||
| 47 | -- | ||
| 48 | 2.28.0 | ||
| 49 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0005-msdk-fix-includedir-path.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0005-msdk-fix-includedir-path.patch deleted file mode 100644 index cb3bb7d36..000000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0005-msdk-fix-includedir-path.patch +++ /dev/null | |||
| @@ -1,31 +0,0 @@ | |||
| 1 | From 1f00d5026118ebd48e4ccf83d32d67155c4e7f60 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Naveen Saini <naveen.kumar.saini@intel.com> | ||
| 3 | Date: Wed, 30 Dec 2020 16:37:47 +0800 | ||
| 4 | Subject: [PATCH] msdk: fix includedir path | ||
| 5 | |||
| 6 | In cross compilation, need to prepend PKG_CONFIG_SYSROOT_DIR to the dir path. | ||
| 7 | |||
| 8 | Upstream-Status: Inappropriate [OE-specific] | ||
| 9 | |||
| 10 | Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> | ||
| 11 | --- | ||
| 12 | sys/msdk/meson.build | 2 ++ | ||
| 13 | 1 file changed, 2 insertions(+) | ||
| 14 | |||
| 15 | diff --git a/sys/msdk/meson.build b/sys/msdk/meson.build | ||
| 16 | index 6346c9451..068f38548 100644 | ||
| 17 | --- a/sys/msdk/meson.build | ||
| 18 | +++ b/sys/msdk/meson.build | ||
| 19 | @@ -40,7 +40,9 @@ endif | ||
| 20 | |||
| 21 | mfx_dep = dependency('libmfx', required: false) | ||
| 22 | if mfx_dep.found() | ||
| 23 | + pkgconf_sysroot = run_command(python3, '-c', 'import os; print(os.environ.get("PKG_CONFIG_SYSROOT_DIR"))').stdout().strip() | ||
| 24 | mfx_incdir = mfx_dep.get_pkgconfig_variable('includedir') | ||
| 25 | + mfx_incdir = pkgconf_sysroot + mfx_incdir | ||
| 26 | mfx_inc = [] | ||
| 27 | else | ||
| 28 | # Old versions of MediaSDK don't provide a pkg-config file | ||
| 29 | -- | ||
| 30 | 2.17.1 | ||
| 31 | |||
