[vlc-commits] input: small simplification

Rémi Denis-Courmont git at videolan.org
Sat Jul 14 10:42:05 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jul 14 11:13:34 2012 +0300| [94bd33f131ce43affb6821bd2f5a42bcfad5d540] | committer: Rémi Denis-Courmont

input: small simplification

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=94bd33f131ce43affb6821bd2f5a42bcfad5d540
---

 src/input/es_out.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/input/es_out.c b/src/input/es_out.c
index d7cfb1e..b011682 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -2739,12 +2739,9 @@ static char *LanguageGetCode( const char *psz_lang )
             !strcasecmp( pl->psz_iso639_1, psz_lang ) ||
             !strcasecmp( pl->psz_iso639_2T, psz_lang ) ||
             !strcasecmp( pl->psz_iso639_2B, psz_lang ) )
-            break;
+            return strdup( pl->psz_iso639_1 );
     }
 
-    if( pl->psz_eng_name != NULL )
-        return strdup( pl->psz_iso639_1 );
-
     return strdup("??");
 }
 



More information about the vlc-commits mailing list