summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorJosep Torra <n770galaxy@gmail.com>2013-04-18 12:16:17 +0200
committerJosep Torra <n770galaxy@gmail.com>2013-04-18 12:16:17 +0200
commit5ba7f5effc310ce39235d242875a8dde0fbf1846 (patch)
tree184d29af78d689b7e419b3f875d6ecd593e01fe1 /gst-libs
parent2306d51d9dddffe49c07d87858f57e6b3614effc (diff)
downloadgstreamer-plugins-bad-5ba7f5effc310ce39235d242875a8dde0fbf1846.tar.gz
egl: silence warnings building for RPI related to 'vcos_*'
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/egl/egl.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/gst-libs/gst/egl/egl.c b/gst-libs/gst/egl/egl.c
index 164f8e444..12310b9fd 100644
--- a/gst-libs/gst/egl/egl.c
+++ b/gst-libs/gst/egl/egl.c
@@ -23,10 +23,26 @@
#include "config.h"
#endif
+
+#if defined (USE_EGL_RPI) && defined(__GNUC__)
+#ifndef __VCCOREVER__
+#define __VCCOREVER__ 0x04000000
+#endif
+
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wredundant-decls"
+#pragma GCC optimize ("gnu89-inline")
+#endif
+
#define EGL_EGLEXT_PROTOTYPES
#include <gst/egl/egl.h>
+#if defined (USE_EGL_RPI) && defined(__GNUC__)
+#pragma GCC reset_options
+#pragma GCC diagnostic pop
+#endif
+
typedef struct
{
GstMemory parent;
@@ -252,8 +268,8 @@ gst_egl_image_allocator_obtain (void)
GstMemory *
gst_egl_image_allocator_alloc (GstAllocator * allocator,
- GstEGLDisplay * display, GstVideoGLTextureType type, gint width, gint height,
- gsize * size)
+ GstEGLDisplay * display, GstVideoGLTextureType type, gint width,
+ gint height, gsize * size)
{
return NULL;
}