From: Matthew Waters Date: Mon, 28 Mar 2022 09:49:01 +0000 (+1100) Subject: applemedia/iosgl: remove unused variable X-Git-Tag: 1.22.0~2013 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8f83c9d148f14e1c9cd19f5ad048bc8de16ba73;p=platform%2Fupstream%2Fgstreamer.git 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: --- diff --git a/subprojects/gst-plugins-bad/sys/applemedia/iosurfaceglmemory.c b/subprojects/gst-plugins-bad/sys/applemedia/iosurfaceglmemory.c index d37e6e2..360d45f 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,