diff options
author | titer <[email protected]> | 2006-04-17 19:34:42 +0000 |
---|---|---|
committer | titer <[email protected]> | 2006-04-17 19:34:42 +0000 |
commit | c1dbdecc75629ddebad41f236445a89b6cc9cd9a (patch) | |
tree | d23d8dca8d32a5ae8089c72e6dde3297f641e844 /libhb | |
parent | b30c3a727aa539f10adeae2220b4aa48e0b18feb (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.h | 1 | ||||
-rw-r--r-- | libhb/dvd.c | 2 |
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 ); |