summaryrefslogtreecommitdiffstats
path: root/libhb/hb_json.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2015-01-22 19:45:50 +0000
committerjstebbins <[email protected]>2015-01-22 19:45:50 +0000
commit60007b90b14a99eb84736ea3b803f529557237d2 (patch)
treed20d1ea4c7d1f98c1090eb72cf194d9edf70feb7 /libhb/hb_json.c
parent6b89d3d30dd1d278dbffdf1bb850c1082d5a4c32 (diff)
json: add "Track" to audio and subtitle in titles
This is the track that must be passed to libhb in the job to select desired audio and subtitle tracks git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6794 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/hb_json.c')
-rw-r--r--libhb/hb_json.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libhb/hb_json.c b/libhb/hb_json.c
index 191d6da5d..5fcf13b76 100644
--- a/libhb/hb_json.c
+++ b/libhb/hb_json.c
@@ -254,7 +254,8 @@ static json_t* hb_title_to_dict( const hb_title_t * title )
hb_audio_t *audio = hb_list_item(title->list_audio, ii);
audio_dict = json_pack_ex(&error, 0,
- "{s:o, s:o, s:o, s:o, s:o, s:o}",
+ "{s:o, s:o, s:o, s:o, s:o, s:o, s:o}",
+ "Track", json_integer(audio->config.in.track),
"Description", json_string(audio->config.lang.description),
"Language", json_string(audio->config.lang.simple),
"LanguageCode", json_string(audio->config.lang.iso639_2),
@@ -279,7 +280,8 @@ static json_t* hb_title_to_dict( const hb_title_t * title )
hb_subtitle_t *subtitle = hb_list_item(title->list_subtitle, ii);
subtitle_dict = json_pack_ex(&error, 0,
- "{s:o, s:o, s:o, s:o}",
+ "{s:o, s:o, s:o, s:o, s:o}",
+ "Track", json_integer(subtitle->track),
"Format", json_integer(subtitle->format),
"Source", json_integer(subtitle->source),
"Language", json_string(subtitle->lang),