summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authoreddyg <[email protected]>2009-05-04 01:39:48 +0000
committereddyg <[email protected]>2009-05-04 01:39:48 +0000
commit6be1d2f6861284fede24d8ca1021905846008a5a (patch)
tree9ba0b04aaeeddbe1e3c854a5986406d5bf6d107e /test
parent1349c26c5417fd23676a4cb5cf572fbfe75e3b62 (diff)
Stage 1 Soft Subtitle Support - Allow multiple subtitle tracks to be selected, and mark them for Render or Pass Through. No functional difference from the UIs, however in theory they could render multiple tracks - would be a dogs breakfast on screen though, and is untested. Have tested all normal operations from the UIs, including scanning.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2373 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test')
-rw-r--r--test/test.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/test.c b/test/test.c
index 2ab159488..411c20c61 100644
--- a/test/test.c
+++ b/test/test.c
@@ -1640,7 +1640,15 @@ static int HandleEvents( hb_handle_t * h )
if( sub )
{
- job->subtitle = sub - 1;
+ hb_subtitle_t *subtitle;
+ /*
+ * Find the subtitle with the same track as "sub" and
+ * add that to the job subtitle list
+ */
+ subtitle = hb_list_item( title->list_subtitle, sub );
+ if( subtitle ) {
+ hb_list_add( job->list_subtitle, subtitle );
+ }
}
if( native_language )