[vlc-commits] src: allow language lookup with the full name
Jean-Baptiste Kempf
git at videolan.org
Sun Apr 17 11:03:25 CEST 2016
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Apr 11 21:07:08 2016 +0200| [0cbaed087f67cea8aa79f2767ccca56040e61e34] | 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=0cbaed087f67cea8aa79f2767ccca56040e61e34
---
src/input/es_out.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/input/es_out.c b/src/input/es_out.c
index 4dafa6f..330b290 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -2754,7 +2754,9 @@ static char *LanguageGetName( const char *psz_code )
}
else
{
- return strdup( psz_code );
+ char *lang = LanguageGetCode( psz_code );
+ pl = GetLang_1( lang );
+ free( lang );
}
if( !strcmp( pl->psz_iso639_1, "??" ) )
More information about the vlc-commits
mailing list