summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
Diffstat (limited to 'libhb')
-rw-r--r--libhb/common.h1
-rw-r--r--libhb/dvd.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/libhb/common.h b/libhb/common.h
index a0c22ff27..f5af73c03 100644
--- a/libhb/common.h
+++ b/libhb/common.h
@@ -189,6 +189,7 @@ struct hb_audio_s
{
int id;
char lang[1024];
+ char lang_simple[1024];
int codec;
int rate;
int bitrate;
diff --git a/libhb/dvd.c b/libhb/dvd.c
index 54b5e5e92..f0cc521bc 100644
--- a/libhb/dvd.c
+++ b/libhb/dvd.c
@@ -247,6 +247,8 @@ hb_title_t * hb_dvd_title_scan( hb_dvd_t * d, int t )
lang_for_code( vts->vtsi_mat->vts_audio_attr[i].lang_code ),
audio->codec == HB_ACODEC_AC3 ? "AC3" : ( audio->codec ==
HB_ACODEC_MPGA ? "MPEG" : "LPCM" ) );
+ snprintf( audio->lang_simple, sizeof( audio->lang_simple ), "%s",
+ lang_for_code( vts->vtsi_mat->vts_audio_attr[i].lang_code ) );
hb_log( "scan: id=%x, lang=%s", audio->id,
audio->lang );