blob: e680c88bcaa3683d80020b5004827a45eee485b4 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001From fd4d233757cc46cd89f68b45ec4b059940dd84ae Mon Sep 17 00:00:00 2001
2From: Vincent Davis Jr <vince@underview.tech>
3Date: Fri, 9 Dec 2022 19:58:11 -0600
4Subject: [PATCH] codec: omxil_core.h fix multiple definition of
5
6Upstream-Status: Inappropriate
7
8RPI-Distro repo forks original vlc and applies patches
9to enable raspiberry pi support.
10
11Issue occurs during compilation as
12* pf_enable_graphic_buffers
13* pf_get_graphic_buffer_usage
14* pf_get_hal_format
15
16Apears to be defined multiple times as the omxil_core.h
17is included in multiple files.
18
19Signed-off-by: Vincent Davis Jr <vince@underview.tech>
20---
21 modules/codec/omxil/omxil_core.h | 6 +++---
22 1 file changed, 3 insertions(+), 3 deletions(-)
23
24diff --git a/modules/codec/omxil/omxil_core.h b/modules/codec/omxil/omxil_core.h
25index ac3db510b..f6e42f5ed 100644
26--- a/modules/codec/omxil/omxil_core.h
27+++ b/modules/codec/omxil/omxil_core.h
28@@ -34,9 +34,9 @@ extern OMX_ERRORTYPE (*pf_component_enum)(OMX_STRING, OMX_U32, OMX_U32);
29 extern OMX_ERRORTYPE (*pf_get_roles_of_component)(OMX_STRING, OMX_U32 *, OMX_U8 **);
30
31 /* Extra IOMX android functions. Can be NULL if we don't link with libiomx */
32-OMX_ERRORTYPE (*pf_enable_graphic_buffers)(OMX_HANDLETYPE, OMX_U32, OMX_BOOL);
33-OMX_ERRORTYPE (*pf_get_graphic_buffer_usage)(OMX_HANDLETYPE, OMX_U32, OMX_U32*);
34-OMX_ERRORTYPE (*pf_get_hal_format) (const char *, int *);
35+extern OMX_ERRORTYPE (*pf_enable_graphic_buffers)(OMX_HANDLETYPE, OMX_U32, OMX_BOOL);
36+extern OMX_ERRORTYPE (*pf_get_graphic_buffer_usage)(OMX_HANDLETYPE, OMX_U32, OMX_U32*);
37+extern OMX_ERRORTYPE (*pf_get_hal_format) (const char *, int *);
38
39 int InitOmxCore(vlc_object_t *p_this);
40 void DeinitOmxCore(void);
41--
422.38.1
43