aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-gstallocatorphymem.c-Typecast-result-of-gst_phymem_g.patch
blob: 190571478b8c1041b80086c2873b9be999fb8f4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
From 071fd005ad6572767d7441c97549b1c904719944 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Mon, 12 Sep 2022 20:29:25 -0700
Subject: [PATCH] gstallocatorphymem.c: Typecast result of gst_phymem_get_phy
 to guintptr

This fixes a warning/error found with clang-15

Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 gst-libs/gst/allocators/gstallocatorphymem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/gst-libs/gst/allocators/gstallocatorphymem.c
+++ b/gst-libs/gst/allocators/gstallocatorphymem.c
@@ -225,7 +225,7 @@ static guintptr
 gst_allocator_phymem_get_phys_addr (GstPhysMemoryAllocator * allocator,
     GstMemory * mem)
 {
-  return gst_phymem_get_phy (mem);
+  return (guintptr)gst_phymem_get_phy (mem);
 }
 
 static void
--- a/gst-libs/gst/gl/gstglphymemory.c
+++ b/gst-libs/gst/gl/gstglphymemory.c
@@ -337,7 +337,7 @@ gst_gl_physical_memory_setup_buffer (Gst
     GST_VIDEO_INFO_HEIGHT (info),
     viv_fmt,
     memblk->vaddr,
-    memblk->paddr,
+    (guint)memblk->paddr,
     FALSE
   };
 
--- a/gst/subparse/gstssaparse.c
+++ b/gst/subparse/gstssaparse.c
@@ -24,7 +24,9 @@
 #include "config.h"
 #endif
 
+#include <ctype.h>              /* isspace() */
 #include <stdlib.h>             /* atoi() */
+#include <stdio.h>              /* sscanf() */
 #include <string.h>
 
 #include "gstssaparse.h"