diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2023-03-14 08:46:16 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-14 08:46:16 -0300 |
commit | 7a761ee7b29847cf1e441699dfae4ca56bb2fe66 (patch) | |
tree | 828fd16e93464435990c094265724e1ee6698bf8 /recipes-multimedia/gstreamer/imx-gst1.0-plugin/0007-gstimxv4l2-Fix-typecasting-errors.patch | |
parent | efbd4d5aa45fa568b04f0948266e6b6d90f958c0 (diff) | |
parent | 19772e2ed81d2c7ace72e95cc7886e86ca94df42 (diff) | |
download | meta-freescale-7a761ee7b29847cf1e441699dfae4ca56bb2fe66.tar.gz |
Merge pull request #1456 from YoeDistro/yoe/mut
imx-gst1.0-plugin: Fix build with clang
Diffstat (limited to 'recipes-multimedia/gstreamer/imx-gst1.0-plugin/0007-gstimxv4l2-Fix-typecasting-errors.patch')
-rw-r--r-- | recipes-multimedia/gstreamer/imx-gst1.0-plugin/0007-gstimxv4l2-Fix-typecasting-errors.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/recipes-multimedia/gstreamer/imx-gst1.0-plugin/0007-gstimxv4l2-Fix-typecasting-errors.patch b/recipes-multimedia/gstreamer/imx-gst1.0-plugin/0007-gstimxv4l2-Fix-typecasting-errors.patch new file mode 100644 index 00000000..1983838a --- /dev/null +++ b/recipes-multimedia/gstreamer/imx-gst1.0-plugin/0007-gstimxv4l2-Fix-typecasting-errors.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From a1a2069403e227d4d40fc99257d1be077f65bdc8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sun, 12 Mar 2023 19:54:18 -0700 | ||
4 | Subject: [PATCH 07/10] gstimxv4l2: Fix typecasting errors | ||
5 | |||
6 | Fixes | ||
7 | gstimxv4l2.c:1702:22: error: incompatible pointer to integer conversion assigning to 'unsigned long' from 'guint8 *' (aka 'unsigned char *') [-Wint-conversion] | ||
8 | |||
9 | Upstream-Status: Submitted [https://github.com/nxp-imx/imx-gst1.0-plugin/pull/4] | ||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | libs/v4l2_core/gstimxv4l2.c | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/libs/v4l2_core/gstimxv4l2.c b/libs/v4l2_core/gstimxv4l2.c | ||
16 | index 1dc826b..bf2620a 100755 | ||
17 | --- a/libs/v4l2_core/gstimxv4l2.c | ||
18 | +++ b/libs/v4l2_core/gstimxv4l2.c | ||
19 | @@ -1699,7 +1699,7 @@ gint gst_imx_v4l2_register_buffer (gpointer v4l2handle, PhyMemBlock *memblk) | ||
20 | v4l2buf->type = handle->type; | ||
21 | v4l2buf->memory = handle->memory_mode; | ||
22 | v4l2buf->index = handle->allocated; | ||
23 | - v4l2buf->m.userptr = memblk->paddr; | ||
24 | + v4l2buf->m.userptr = (unsigned long)memblk->paddr; | ||
25 | v4l2buf->length = memblk->size; | ||
26 | handle->buffer_pair[handle->allocated].vaddr = memblk->vaddr; | ||
27 | |||
28 | -- | ||
29 | 2.39.2 | ||
30 | |||