summaryrefslogtreecommitdiffstats
path: root/test/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.c')
-rw-r--r--test/test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test.c b/test/test.c
index 411c20c61..a1d9262d1 100644
--- a/test/test.c
+++ b/test/test.c
@@ -1645,9 +1645,11 @@ static int HandleEvents( hb_handle_t * h )
* 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 );
+ subtitle = hb_list_item( title->list_subtitle, sub-1 );
if( subtitle ) {
hb_list_add( job->list_subtitle, subtitle );
+ } else {
+ fprintf( stderr, "Could not find subtitle track %d, skipped\n", sub );
}
}