gl/window: hopefully fixup compile warnings on android/ios

This commit is contained in:
Matthew Waters 2015-03-11 14:50:28 +00:00 committed by Tim-Philipp Müller
parent ebbdf29a24
commit 9968b512c5
2 changed files with 5 additions and 11 deletions

View file

@ -89,7 +89,7 @@ gst_gl_window_android_egl_init (GstGLWindowAndroidEGL * window)
static void
gst_gl_window_android_egl_finalize (GObject * object)
{
GstGLWindowAndroidEGL *window_egl GST_GL_WINDOW_ANDROID_EGL (object);
GstGLWindowAndroidEGL *window_egl = GST_GL_WINDOW_ANDROID_EGL (object);
g_main_loop_unref (window_egl->loop);
g_main_context_unref (window_egl->main_context);
@ -113,17 +113,12 @@ gst_gl_window_android_egl_new (void)
static gboolean
gst_gl_window_android_egl_open (GstGLWindow * window, GError ** error)
{
GstGLWindowAndroidEGL *window_egl;
return TRUE;
}
static void
gst_gl_window_android_egl_close (GstGLWindow * window)
{
GstGLWindowAndroidEGL *window_egl;
window_egl = GST_GL_WINDOW_ANDROID_EGL (window);
}
static void

View file

@ -99,18 +99,17 @@ gst_gl_window_eagl_init (GstGLWindowEagl * window)
{
window->priv = GST_GL_WINDOW_EAGL_GET_PRIVATE (window);
window_eagl->priv->main_context = g_main_context_new ();
window_eagl->priv->loop =
g_main_loop_new (window_eagl->priv->main_context, FALSE);
window->priv->main_context = g_main_context_new ();
window->priv->loop = g_main_loop_new (window->priv->main_context, FALSE);
}
static void
gst_gl_window_eagl_finalize (GObject * object)
{
GstGLWindowWaylandEagl *window_eagl = GST_GL_WINDOW_EAGL (object);
GstGLWindowEagl *window_eagl = GST_GL_WINDOW_EAGL (object);
g_main_loop_unref (window_eagl->priv->loop);
g_main_context_unref (window_egl->priv->main_context);
g_main_context_unref (window_eagl->priv->main_context);
G_OBJECT_CLASS (parent_class)->finalize (object);
}