summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRodeo <[email protected]>2013-03-19 15:41:33 +0000
committerRodeo <[email protected]>2013-03-19 15:41:33 +0000
commit830250fbb8d0a74f8d06cb995f1778d59933ce95 (patch)
tree923792b8670e04c922d847150c77225bd1a5c62b /test
parent851703a2e9e5251d552ea00dbe70ca548b5597e2 (diff)
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
Diffstat (limited to 'test')
-rw-r--r--test/test.c8
1 files 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;