summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-06-02 15:32:01 +0000
committerjstebbins <[email protected]>2009-06-02 15:32:01 +0000
commitb1fcb3154f5c09a81e0cf712fad9d22f4e8e89bc (patch)
tree263ef770c5316bd112024f2a688c272c69f5b528 /test
parent8868e9649a2ff1c60a3334e00418bba92eb67f70 (diff)
softsubtitles:
- when doing an indepth scan, do not scan CC tracks - separate subtitle configureation attributes into separate hb_subtitle_config_t. Add an instance of this to hb_job_t for setting the attributes of the subtitle found through an indepth scan - Add a default_track flag to hb_subtitle_config_t that tells the muxer that the track should be flaged as the default. muxmkv uses this. - When an indepth scan is complete, check to see if the autoselected subtitle matchces (by id) one of the manually selected subtitles. If a match is found, the autoselected subtitle with all the attributes the user assigned to it replaces the manually selected subtitle. - LinGui: Add "Default" column to subtitle tab. This is a radio that lets the user choose which subtitle should be displayed by default. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2468 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test')
-rw-r--r--test/test.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test.c b/test/test.c
index ab08750e2..fc915d45e 100644
--- a/test/test.c
+++ b/test/test.c
@@ -1656,7 +1656,7 @@ static int HandleEvents( hb_handle_t * h )
subtitle = hb_list_item( title->list_subtitle, sub-1 );
if( subtitle ) {
if( subtitle_force ) {
- subtitle->force = subtitle_force;
+ subtitle->config.force = subtitle_force;
}
hb_list_add( job->list_subtitle, subtitle );
} else {
@@ -1750,6 +1750,10 @@ static int HandleEvents( hb_handle_t * h )
job->select_subtitle = malloc(sizeof(hb_subtitle_t*));
*(job->select_subtitle) = NULL;
+ job->select_subtitle_config.dest = RENDERSUB;
+ job->select_subtitle_config.default_track = 0;
+ job->select_subtitle_config.force = subtitle_force;
+
/*
* Add the pre-scan job
*/