From 830250fbb8d0a74f8d06cb995f1778d59933ce95 Mon Sep 17 00:00:00 2001 From: Rodeo Date: Tue, 19 Mar 2013 15:41:33 +0000 Subject: [PATCH] CLI: when an audio or subtitle track is skipped, print the string value. Makes it easier to spot non-numeric track "numbers". git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5345 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- test/test.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/test.c b/test/test.c index 8247f5699..c15615e38 100644 --- a/test/test.c +++ b/test/test.c @@ -1836,7 +1836,9 @@ static int HandleEvents( hb_handle_t * h ) int i = atoi( token ) - 1; if( hb_list_item( title->list_audio, i ) == NULL ) { - fprintf( stderr, "Warning: could not find audio track %d, skipped\n", i + 1 ); + fprintf(stderr, + "Warning: Could not find audio track '%s', skipped\n", + token); continue; } audio = calloc( 1, sizeof( *audio ) ); @@ -2496,7 +2498,9 @@ static int HandleEvents( hb_handle_t * h ) subtitle = hb_list_item(title->list_subtitle, track); if( subtitle == NULL ) { - fprintf( stderr, "Warning: Could not find subtitle track %d, skipped\n", track+1 ); + fprintf(stderr, + "Warning: Could not find subtitle track '%s', skipped\n", + token); continue; } sub_config = subtitle->config; -- 2.40.0