From e5d96d052bf96164c434688951298e6501fe2b4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 13 Apr 2014 19:20:32 +0200 Subject: [PATCH] gl/eagl: Fix compilation --- gst-libs/gst/gl/eagl/gstglwindow_eagl.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gst-libs/gst/gl/eagl/gstglwindow_eagl.m b/gst-libs/gst/gl/eagl/gstglwindow_eagl.m index 3ec03b0faf..53f03cab3e 100644 --- a/gst-libs/gst/gl/eagl/gstglwindow_eagl.m +++ b/gst-libs/gst/gl/eagl/gstglwindow_eagl.m @@ -57,6 +57,7 @@ static void gst_gl_window_eagl_close (GstGLWindow * window); struct _GstGLWindowEaglPrivate { UIView *view; + gint window_width, window_height; GMainContext *main_context; GMainLoop *loop; @@ -230,7 +231,7 @@ draw_cb (gpointer data) GstGLContextEagl *eagl_context = GST_GL_CONTEXT_EAGL (context); GstGLContextClass *context_class = GST_GL_CONTEXT_GET_CLASS (context); - if (window_eagl->view) { + if (window_eagl->priv->view) { CGSize size; CAEAGLLayer *eagl_layer; @@ -241,8 +242,8 @@ draw_cb (gpointer data) window_eagl->priv->window_width = size.width; window_eagl->priv->window_height = size.height; - if (window->resize_cb) - window->resize_cb (window->resize_data, size.width, size.height); + if (window->resize) + window->resize (window->resize_data, size.width, size.height); } }