gloverlay: And fix another unused variable compiler warning

This commit is contained in:
Vivia Nikolaidou 2014-10-08 21:51:12 +03:00 committed by Sebastian Dröge
parent b8d64301af
commit 7872359239

View file

@ -445,11 +445,11 @@ static void
gst_gl_overlay_callback (gint width, gint height, guint texture, gpointer stuff) gst_gl_overlay_callback (gint width, gint height, guint texture, gpointer stuff)
{ {
GstGLOverlay *overlay = GST_GL_OVERLAY (stuff); GstGLOverlay *overlay = GST_GL_OVERLAY (stuff);
GstGLFilter *filter = GST_GL_FILTER (overlay);
GstMapInfo map_info; GstMapInfo map_info;
guint image_tex; guint image_tex;
#if GST_GL_HAVE_OPENGL #if GST_GL_HAVE_OPENGL
GstGLFilter *filter = GST_GL_FILTER (overlay);
if (gst_gl_context_get_gl_api (filter->context) & GST_GL_API_OPENGL) { if (gst_gl_context_get_gl_api (filter->context) & GST_GL_API_OPENGL) {
const GstGLFuncs *gl = filter->context->gl_vtable; const GstGLFuncs *gl = filter->context->gl_vtable;