Skip to content

Commit a4a73ad

Browse files
committed
gstreamer1.0-plugins-good: Fix build with clang-16
Signed-off-by: Khem Raj <raj.khem@gmail.com>
1 parent 07bcb51 commit a4a73ad

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
From dc5d752ec3fbec10402aa60fa8245e384e0c7206 Mon Sep 17 00:00:00 2001
2+
From: Khem Raj <raj.khem@gmail.com>
3+
Date: Wed, 7 Jun 2023 22:53:47 -0700
4+
Subject: [PATCH] v4l2: Include gst/allocators/gstdmabuf.h for
5+
gst_is_dmabuf_memory()
6+
7+
This is flagged by clang-16
8+
../git/sys/v4l2/gstv4l2videoenc.c:756:9: error: call to undeclared function 'gst_is_dmabuf_memory'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
9+
if (gst_is_dmabuf_memory (gst_buffer_peek_memory (frame->input_buffer, 0))
10+
^
11+
12+
Upstream-Status: Submitted [https://github.com/nxp-imx/gst-plugins-good/pull/2]
13+
Signed-off-by: Khem Raj <raj.khem@gmail.com>
14+
---
15+
sys/v4l2/gstv4l2videoenc.c | 1 +
16+
1 file changed, 1 insertion(+)
17+
18+
diff --git a/sys/v4l2/gstv4l2videoenc.c b/sys/v4l2/gstv4l2videoenc.c
19+
index a505a228f..f24d5a795 100644
20+
--- a/sys/v4l2/gstv4l2videoenc.c
21+
+++ b/sys/v4l2/gstv4l2videoenc.c
22+
@@ -36,6 +36,7 @@
23+
24+
#include <string.h>
25+
#include <gst/gst-i18n-plugin.h>
26+
+#include <gst/allocators/gstdmabuf.h>
27+
28+
GST_DEBUG_CATEGORY_STATIC (gst_v4l2_video_enc_debug);
29+
#define GST_CAT_DEFAULT gst_v4l2_video_enc_debug
30+
--
31+
2.41.0
32+

‎recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.20.3.imx.bb‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ BUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues
1313

1414
SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-${PV}.tar.xz \
1515
file://0001-qt-include-ext-qt-gstqtgl.h-instead-of-gst-gl-gstglf.patch \
16+
file://0001-v4l2-Include-gst-allocators-gstdmabuf.h-for-gst_is_d.patch \
1617
"
1718

1819
SRC_URI[sha256sum] = "f8f3c206bf5cdabc00953920b47b3575af0ef15e9f871c0b6966f6d0aa5868b7"

0 commit comments

Comments
 (0)