gl/eagl: ignore OpenGLES deprecation on ios

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5111>
This commit is contained in:
Matthew Waters 2023-07-27 17:52:18 +10:00 committed by GStreamer Marge Bot
parent ce81b81d3f
commit 00316db5e5
2 changed files with 14 additions and 0 deletions

View file

@ -22,6 +22,11 @@
#include "config.h" #include "config.h"
#endif #endif
#include <gst/gst.h>
/* The entirety of OpenGL is deprecated starting from ios 12.0 */
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
#import <OpenGLES/EAGL.h> #import <OpenGLES/EAGL.h>
#import <QuartzCore/QuartzCore.h> #import <QuartzCore/QuartzCore.h>
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
@ -475,3 +480,5 @@ gst_gl_context_eagl_get_config (GstGLContext * context)
return layer_config_to_structure (eagl, (__bridge CAEAGLLayer *) eagl->priv->eagl_layer); return layer_config_to_structure (eagl, (__bridge CAEAGLLayer *) eagl->priv->eagl_layer);
} }
G_GNUC_END_IGNORE_DEPRECATIONS

View file

@ -22,6 +22,11 @@
#include "config.h" #include "config.h"
#endif #endif
#include <gst/gst.h>
/* The entirety of OpenGL is deprecated starting from ios 12.0 */
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
#import <OpenGLES/EAGL.h> #import <OpenGLES/EAGL.h>
#import <QuartzCore/QuartzCore.h> #import <QuartzCore/QuartzCore.h>
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
@ -388,3 +393,5 @@ _gl_invoke_on_main (GstGLWindowEaglFunc func, gpointer data, GDestroyNotify noti
}); });
} }
} }
G_GNUC_END_IGNORE_DEPRECATIONS