diff options
author | phintuka <phintuka> | 2008-02-20 03:28:01 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2008-02-20 03:28:01 +0000 |
commit | 1cd85ddef60bae83013b257952a585d6246e630f (patch) | |
tree | ef11a5cec40018817708b9525391a24b262af20c | |
parent | 4e87a0356ad31490e1995d2704d389cca5b28d02 (diff) | |
download | xineliboutput-1cd85ddef60bae83013b257952a585d6246e630f.tar.gz xineliboutput-1cd85ddef60bae83013b257952a585d6246e630f.tar.bz2 |
Convert all iso639-2 language names to iso639-1
-rw-r--r-- | frontend.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: frontend.c,v 1.46 2008-02-19 04:34:53 phintuka Exp $ + * $Id: frontend.c,v 1.47 2008-02-20 03:28:01 phintuka Exp $ * */ @@ -36,6 +36,7 @@ #include "tools/pes.h" #include "tools/general_remote.h" +#include "tools/iso639.h" //#define LOG_CONTROL_MESSAGES //#define XINELIBOUTPUT_LOG_KEYS @@ -114,9 +115,9 @@ void cXinelibThread::InfoHandler(const char *info) while(*map && *map != ' ') map++; if(*map == ' ') { *map = 0; map++; }; #if VDRVERSNUM < 10515 && !defined(VDRSPUPATCH) - cXinelibDevice::Instance().SetAvailableDvdSpuTrack(id, *lang ? lang : NULL, Current); + cXinelibDevice::Instance().SetAvailableDvdSpuTrack(id, iso639_2_to_iso639_1(lang), Current); #else - cXinelibDevice::Instance().SetAvailableTrack(ttSubtitle, id, id, *lang ? lang : NULL); + cXinelibDevice::Instance().SetAvailableTrack(ttSubtitle, id, id, iso639_2_to_iso639_1(lang)); #endif } } @@ -143,7 +144,7 @@ void cXinelibThread::InfoHandler(const char *info) char *lang = map; while(*map && *map != ' ') map++; if(*map == ' ') { *map = 0; map++; }; - cXinelibDevice::Instance().SetAvailableTrack(ttDolby, id, ttDolby+id, *lang ? lang : NULL); + cXinelibDevice::Instance().SetAvailableTrack(ttDolby, id, ttDolby+id, iso639_2_to_iso639_1(lang)); if(Current) cXinelibDevice::Instance().SetCurrentAudioTrack((eTrackType)(ttDolby+id)); } |