projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c180012
)
glfilterapp: fix unused variable compiler warning
author
Tim-Philipp Müller
<tim@centricular.com>
Fri, 28 Nov 2014 16:04:54 +0000
(16:04 +0000)
committer
Tim-Philipp Müller
<tim@centricular.com>
Fri, 28 Nov 2014 16:04:54 +0000
(16:04 +0000)
When GST_GL_HAVE_OPENGL is 0 or unset.
ext/gl/gstglfilterapp.c
patch
|
blob
|
history
diff --git
a/ext/gl/gstglfilterapp.c
b/ext/gl/gstglfilterapp.c
index
b54c53d
..
78be4f8
100644
(file)
--- a/
ext/gl/gstglfilterapp.c
+++ b/
ext/gl/gstglfilterapp.c
@@
-215,10
+215,11
@@
gst_gl_filter_app_callback (gint width, gint height, guint texture,
gpointer stuff)
{
GstGLFilter *filter = GST_GL_FILTER (stuff);
- GstGLFuncs *gl = filter->context->gl_vtable;
#if GST_GL_HAVE_OPENGL
if (gst_gl_context_get_gl_api (filter->context) & GST_GL_API_OPENGL) {
+ GstGLFuncs *gl = filter->context->gl_vtable;
+
gl->MatrixMode (GL_PROJECTION);
gl->LoadIdentity ();
}