From 59e298a6fbe29e4ec58960ece30c1789e09af8d0 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 11 Jun 2015 15:02:44 +0200 Subject: [PATCH] gtk: Do not try to initialize display if we have not have a GLContext yet --- ext/gtk/gtkgstglwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/gtk/gtkgstglwidget.c b/ext/gtk/gtkgstglwidget.c index b5eb85d8c8..11c5b6f15a 100644 --- a/ext/gtk/gtkgstglwidget.c +++ b/ext/gtk/gtkgstglwidget.c @@ -210,7 +210,7 @@ gtk_gst_gl_widget_render (GtkGLArea * widget, GdkGLContext * context) g_mutex_lock (&gst_widget->priv->lock); - if (!gst_widget->priv->initted) + if (!gst_widget->priv->initted && gst_widget->priv->context) gtk_gst_gl_widget_init_redisplay (gst_widget); if (gst_widget->priv->initted && gst_widget->priv->negotiated