mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
gtk: Do not try to activate a NULL GLContext
At that point in the code nothing guarantees it exists
This commit is contained in:
parent
97dfc5f5a6
commit
7634a77611
1 changed files with 2 additions and 1 deletions
|
@ -284,7 +284,8 @@ gtk_gst_gl_widget_render (GtkGLArea * widget, GdkGLContext * context)
|
|||
glClear (GL_COLOR_BUFFER_BIT);
|
||||
}
|
||||
|
||||
gst_gl_context_activate (gst_widget->priv->other_context, FALSE);
|
||||
if (gst_widget->priv->other_context)
|
||||
gst_gl_context_activate (gst_widget->priv->other_context, FALSE);
|
||||
|
||||
g_mutex_unlock (&gst_widget->priv->lock);
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue