mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
gtk: Do not try to initialize display if we have not have a GLContext yet
This commit is contained in:
parent
b9d8d83ca4
commit
59e298a6fb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue