gl/eagl: Fix compilation

This commit is contained in:
Sebastian Dröge 2014-04-13 19:20:32 +02:00
parent d3d1b5a5e2
commit e5d96d052b

View file

@ -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);
} }
} }