mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
gl: silence warnings building for RPI related to 'vcos_*'
Similar than 1190a79b19
This commit is contained in:
parent
e870244e39
commit
fa4ce072ee
2 changed files with 21 additions and 5 deletions
|
@ -43,10 +43,6 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_EGL_RPI
|
|
||||||
#include <bcm_host.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "gstglimagesink.h"
|
#include "gstglimagesink.h"
|
||||||
|
|
||||||
#include "gstglfiltercube.h"
|
#include "gstglfiltercube.h"
|
||||||
|
@ -74,6 +70,10 @@
|
||||||
#endif /* HAVE_PNG */
|
#endif /* HAVE_PNG */
|
||||||
#endif /* GST_GL_HAVE_OPENGL */
|
#endif /* GST_GL_HAVE_OPENGL */
|
||||||
|
|
||||||
|
#ifdef USE_EGL_RPI
|
||||||
|
#include <bcm_host.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define GST_CAT_DEFAULT gst_gl_gstgl_debug
|
#define GST_CAT_DEFAULT gst_gl_gstgl_debug
|
||||||
GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT);
|
GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT);
|
||||||
|
|
||||||
|
|
|
@ -22,11 +22,27 @@
|
||||||
#define __GST_GL_API_H__
|
#define __GST_GL_API_H__
|
||||||
|
|
||||||
#include <gst/gl/gstglconfig.h>
|
#include <gst/gl/gstglconfig.h>
|
||||||
|
|
||||||
#include <gst/gl/glprototypes/gstgl_compat.h>
|
#include <gst/gl/glprototypes/gstgl_compat.h>
|
||||||
|
|
||||||
#if GST_GL_HAVE_PLATFORM_EGL
|
#if GST_GL_HAVE_PLATFORM_EGL
|
||||||
|
|
||||||
|
#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
|
||||||
|
|
||||||
#include <EGL/egl.h>
|
#include <EGL/egl.h>
|
||||||
|
|
||||||
|
#if defined (USE_EGL_RPI) && defined(__GNUC__)
|
||||||
|
#pragma GCC reset_options
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* OpenGL 2.0 for Embedded Systems */
|
/* OpenGL 2.0 for Embedded Systems */
|
||||||
|
|
Loading…
Reference in a new issue