From e7b24f8aefda47f95863154aa75cae2c81bd9dbe Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 12 Mar 2023 19:45:04 -0700 Subject: gstreamer1.0-plugins-good: Fix build with clang Signed-off-by: Khem Raj --- ...pe-declaration-for-gst_v4l2_object_stream.patch | 32 ++++++++++++++++++++++ .../gstreamer1.0-plugins-good_1.20.3.imx.bb | 1 + 2 files changed, 33 insertions(+) create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0001-Add-prototype-declaration-for-gst_v4l2_object_stream.patch diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0001-Add-prototype-declaration-for-gst_v4l2_object_stream.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0001-Add-prototype-declaration-for-gst_v4l2_object_stream.patch new file mode 100644 index 00000000..0a6637de --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good/0001-Add-prototype-declaration-for-gst_v4l2_object_stream.patch @@ -0,0 +1,32 @@ +From 50c821e3578e3e0892574d88ef7edb25d60ae50a Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sun, 12 Mar 2023 19:39:46 -0700 +Subject: [PATCH] Add prototype declaration for gst_v4l2_object_streamoff + +Fixes build with latest compilers e.g. clang-16 + +../git/sys/v4l2/gstv4l2videodec.c:354:10: error: call to undeclared function 'gst_v4l2_object_streamoff'; ISO C99 and later do not support implicit function declarations [ -Wimplicit-function-declaration] + if (!gst_v4l2_object_streamoff (self->v4l2capture)) + ^ + +Upstream-Status: Submitted [https://github.com/nxp-imx/gst-plugins-good/pull/1] +Signed-off-by: Khem Raj +--- + sys/v4l2/gstv4l2object.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/sys/v4l2/gstv4l2object.h b/sys/v4l2/gstv4l2object.h +index 685086902..c84dc1724 100644 +--- a/sys/v4l2/gstv4l2object.h ++++ b/sys/v4l2/gstv4l2object.h +@@ -323,6 +323,7 @@ GstStructure * gst_v4l2_object_v4l2fourcc_to_structure (guint32 fourcc); + + /* crop / compose */ + gboolean gst_v4l2_object_set_crop (GstV4l2Object * obj, struct v4l2_rect *result); ++gboolean gst_v4l2_object_streamoff (GstV4l2Object * v4l2object); + + /* TODO Move to proper namespace */ + /* open/close the device */ +-- +2.39.2 + diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.20.3.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.20.3.imx.bb index 8cbbd2d1..ccbf0196 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.20.3.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.20.3.imx.bb @@ -13,6 +13,7 @@ BUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-${PV}.tar.xz \ file://0001-qt-include-ext-qt-gstqtgl.h-instead-of-gst-gl-gstglf.patch \ + file://0001-Add-prototype-declaration-for-gst_v4l2_object_stream.patch \ " SRC_URI[sha256sum] = "f8f3c206bf5cdabc00953920b47b3575af0ef15e9f871c0b6966f6d0aa5868b7" -- cgit v1.2.3-54-g00ecf