[vlc-commits] src: allow language lookup with the full name

Jean-Baptiste Kempf git at videolan.org
Sun Apr 17 11:01:40 CEST 2016


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Apr 11 21:07:08 2016 +0200| [7d0799d7776e863c1696098bfba1274617e7b64e] | committer: Jean-Baptiste Kempf

src: allow language lookup with the full name

If the es.psz_lang provided is not using a shortcode (2 or 3), then it would
fail to find it.

Close #16810

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 src/input/es_out.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/es_out.c b/src/input/es_out.c
index 4dafa6f..5505c33 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -2754,7 +2754,7 @@ static char *LanguageGetName( const char *psz_code )
     }
     else
     {
-        return strdup( psz_code );
+        pl = GetLang_1( LanguageGetCode( psz_code ) );
     }
 
     if( !strcmp( pl->psz_iso639_1, "??" ) )



More information about the vlc-commits mailing list