mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
gl/eagl: Fix compilation
This commit is contained in:
parent
d3d1b5a5e2
commit
e5d96d052b
1 changed files with 4 additions and 3 deletions
|
@ -57,6 +57,7 @@ static void gst_gl_window_eagl_close (GstGLWindow * window);
|
||||||
struct _GstGLWindowEaglPrivate
|
struct _GstGLWindowEaglPrivate
|
||||||
{
|
{
|
||||||
UIView *view;
|
UIView *view;
|
||||||
|
gint window_width, window_height;
|
||||||
|
|
||||||
GMainContext *main_context;
|
GMainContext *main_context;
|
||||||
GMainLoop *loop;
|
GMainLoop *loop;
|
||||||
|
@ -230,7 +231,7 @@ draw_cb (gpointer data)
|
||||||
GstGLContextEagl *eagl_context = GST_GL_CONTEXT_EAGL (context);
|
GstGLContextEagl *eagl_context = GST_GL_CONTEXT_EAGL (context);
|
||||||
GstGLContextClass *context_class = GST_GL_CONTEXT_GET_CLASS (context);
|
GstGLContextClass *context_class = GST_GL_CONTEXT_GET_CLASS (context);
|
||||||
|
|
||||||
if (window_eagl->view) {
|
if (window_eagl->priv->view) {
|
||||||
CGSize size;
|
CGSize size;
|
||||||
CAEAGLLayer *eagl_layer;
|
CAEAGLLayer *eagl_layer;
|
||||||
|
|
||||||
|
@ -241,8 +242,8 @@ draw_cb (gpointer data)
|
||||||
window_eagl->priv->window_width = size.width;
|
window_eagl->priv->window_width = size.width;
|
||||||
window_eagl->priv->window_height = size.height;
|
window_eagl->priv->window_height = size.height;
|
||||||
|
|
||||||
if (window->resize_cb)
|
if (window->resize)
|
||||||
window->resize_cb (window->resize_data, size.width, size.height);
|
window->resize (window->resize_data, size.width, size.height);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue