[vlc-devel] [PATCH 3/3] oxmil: fix variable shadowing

Lyndon Brown jnqnfe at gmail.com
Mon Sep 28 01:34:22 CEST 2020


From: Lyndon Brown <jnqnfe at gmail.com>
Date: Fri, 26 Apr 2019 10:40:54 +0100
Subject: oxmil: fix variable shadowing

j is already declared

diff --git a/modules/codec/omxil/omxil_core.c b/modules/codec/omxil/omxil_core.c
index 5fe0f9a9bf..47acb2aa27 100644
--- a/modules/codec/omxil/omxil_core.c
+++ b/modules/codec/omxil/omxil_core.c
@@ -219,7 +219,7 @@ int CreateComponentsList(vlc_object_t *p_this, const char *psz_role,
 
         msg_Dbg(p_this, "component %s", psz_name);
 
-        for( unsigned int j = 0; role_mappings[j].psz_role; j++ ) {
+        for( j = 0; role_mappings[j].psz_role; j++ ) {
             if( !strcmp( psz_role, role_mappings[j].psz_role ) &&
                 !strcmp( psz_name, role_mappings[j].psz_name ) ) {
                 goto found;



More information about the vlc-devel mailing list