summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authortiter <[email protected]>2006-04-17 19:34:42 +0000
committertiter <[email protected]>2006-04-17 19:34:42 +0000
commitc1dbdecc75629ddebad41f236445a89b6cc9cd9a (patch)
treed23d8dca8d32a5ae8089c72e6dde3297f641e844 /libhb
parentb30c3a727aa539f10adeae2220b4aa48e0b18feb (diff)
Implemented audio and subtitle selection
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@62 b64f7644-9d1e-0410-96f1-a4d463321fa5
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 );