diff options
author | Vivia Nikolaidou <n.vivia@gmail.com> | 2014-10-08 21:49:25 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-10-08 21:49:59 +0300 |
commit | b8d64301af820e38f508eaf1ca319d6d4dd0d9e3 (patch) | |
tree | 0e4ab807a75f4045cb03534628b7f7374fc3c1e4 /ext | |
parent | ce9076f2602eaa0dd7163c22f991ef6cbd22d059 (diff) | |
download | gstreamer-plugins-bad-b8d64301af820e38f508eaf1ca319d6d4dd0d9e3.tar.gz |
gloverlay: Fix unused variable compiler warning when compiling without desktop GL
Diffstat (limited to 'ext')
-rw-r--r-- | ext/gl/gstgloverlay.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/gl/gstgloverlay.c b/ext/gl/gstgloverlay.c index 86e9597fc..65ceb2b9b 100644 --- a/ext/gl/gstgloverlay.c +++ b/ext/gl/gstgloverlay.c @@ -446,12 +446,13 @@ gst_gl_overlay_callback (gint width, gint height, guint texture, gpointer stuff) { GstGLOverlay *overlay = GST_GL_OVERLAY (stuff); GstGLFilter *filter = GST_GL_FILTER (overlay); - const GstGLFuncs *gl = filter->context->gl_vtable; GstMapInfo map_info; guint image_tex; #if GST_GL_HAVE_OPENGL if (gst_gl_context_get_gl_api (filter->context) & GST_GL_API_OPENGL) { + const GstGLFuncs *gl = filter->context->gl_vtable; + gl->MatrixMode (GL_PROJECTION); gl->LoadIdentity (); } |