projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a512a91
)
gtk: Do not try to activate a NULL GLContext
author
Thibault Saunier
<tsaunier@gnome.org>
Fri, 12 Jun 2015 13:39:56 +0000
(15:39 +0200)
committer
Thibault Saunier
<tsaunier@gnome.org>
Fri, 12 Jun 2015 13:40:29 +0000
(15:40 +0200)
At that point in the code nothing guarantees it exists
ext/gtk/gtkgstglwidget.c
patch
|
blob
|
history
diff --git
a/ext/gtk/gtkgstglwidget.c
b/ext/gtk/gtkgstglwidget.c
index 100fa1d072e18d83c01dc8f2ce0809b94025ac66..dfe2c2faf83c6eedec7ef96c0a28c3dbdde71284 100644
(file)
--- a/
ext/gtk/gtkgstglwidget.c
+++ b/
ext/gtk/gtkgstglwidget.c
@@
-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;