From ba8c6baae485893e9ce467e592ba4916746775c7 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Mon, 28 Mar 2022 20:49:01 +1100 Subject: [PATCH] applemedia/iosgl: remove unused variable Fixes: ../sys/applemedia/iosurfaceglmemory.c:219:41: error: variable 'texfmt' set but not used [-Werror,-Wunused-but-set-variable] GLuint tex_id, tex_target, texifmt, texfmt; ^ Part-of: --- .../gst-plugins-bad/sys/applemedia/iosurfaceglmemory.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/applemedia/iosurfaceglmemory.c b/subprojects/gst-plugins-bad/sys/applemedia/iosurfaceglmemory.c index d37e6e223e..360d45f9f0 100644 --- a/subprojects/gst-plugins-bad/sys/applemedia/iosurfaceglmemory.c +++ b/subprojects/gst-plugins-bad/sys/applemedia/iosurfaceglmemory.c @@ -216,7 +216,7 @@ _io_surface_gl_memory_set_surface (GstIOSurfaceGLMemory * memory, IOSurfaceDecrementUseCount (memory->surface); memory->surface = surface; if (surface) { - GLuint tex_id, tex_target, texifmt, texfmt; + GLuint tex_id, tex_target, texifmt; guint plane; CGLError cglError; @@ -224,9 +224,6 @@ _io_surface_gl_memory_set_surface (GstIOSurfaceGLMemory * memory, tex_id = gl_mem->tex_id; tex_target = gst_gl_texture_target_to_gl (gl_mem->tex_target); texifmt = gst_gl_format_from_video_info (context, &gl_mem->info, plane); - texfmt = - gst_gl_sized_gl_format_from_gl_format_type (context, texifmt, - GL_UNSIGNED_BYTE); gl->BindTexture (tex_target, tex_id); cglError = CGLTexImageIOSurface2D ((CGLContextObj) gst_gl_context_get_gl_context (context), tex_target, texifmt,