applemedia/iosgl: remove unused variable
authorMatthew Waters <matthew@centricular.com>
Mon, 28 Mar 2022 09:49:01 +0000 (20:49 +1100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 28 Mar 2022 10:30:23 +0000 (10:30 +0000)
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2046>

subprojects/gst-plugins-bad/sys/applemedia/iosurfaceglmemory.c

index d37e6e2..360d45f 100644 (file)
@@ -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,