summaryrefslogtreecommitdiffstats
path: root/test/test.c
diff options
context:
space:
mode:
authorkonablend <[email protected]>2009-04-18 20:50:48 +0000
committerkonablend <[email protected]>2009-04-18 20:50:48 +0000
commite8f67b0f43d37a2e9f7a1abaa7654a5f77fccee0 (patch)
tree0e9dba25714a87dd2a8e87bf001be2053601bb7d /test/test.c
parent691125a79092a1132863c71c74c32f9c3a614501 (diff)
HandBrakeCLI: change --help to send output to stdout instead of stderr
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2342 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test/test.c')
-rw-r--r--test/test.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/test.c b/test/test.c
index d78cab1e6..06aa02881 100644
--- a/test/test.c
+++ b/test/test.c
@@ -1888,8 +1888,9 @@ void SigHandler( int i_signal )
static void ShowHelp()
{
int i;
+ FILE* const out = stdout;
- fprintf( stderr,
+ fprintf( out,
"Syntax: HandBrakeCLI [options] -i <device> -o <file>\n"
"\n"
"### General Handbrake Options------------------------------------------------\n\n"
@@ -1949,11 +1950,11 @@ static void ShowHelp()
" -r, --rate Set video framerate (" );
for( i = 0; i < hb_video_rates_count; i++ )
{
- fprintf( stderr, hb_video_rates[i].string );
+ fprintf( out, hb_video_rates[i].string );
if( i != hb_video_rates_count - 1 )
- fprintf( stderr, "/" );
+ fprintf( out, "/" );
}
- fprintf( stderr, ")\n"
+ fprintf( out, ")\n"
" Be aware that not specifying a framerate lets\n"
" HandBrake preserve a source's time stamps,\n"
" potentially creating variable framerate video\n"
@@ -1977,11 +1978,11 @@ static void ShowHelp()
" -R, --arate Set audio samplerate(s) (" );
for( i = 0; i < hb_audio_rates_count; i++ )
{
- fprintf( stderr, hb_audio_rates[i].string );
+ fprintf( out, hb_audio_rates[i].string );
if( i != hb_audio_rates_count - 1 )
- fprintf( stderr, "/" );
+ fprintf( out, "/" );
}
- fprintf( stderr, " kHz)\n"
+ fprintf( out, " kHz)\n"
" Separated by commas for more than one audio track.\n"
" -D, --drc <float> Apply extra dynamic range compression to the audio,\n"
" making soft sounds louder. Range is 1.0 to 4.0\n"