aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-01-06 19:08:13 +0100
committerStefano Sabatini <stefasab@gmail.com>2012-01-07 11:02:13 +0100
commitceef1ee7674f21824a3392c654465b43b06c94fe (patch)
treee20c105177bb2d38251b6d625ef0ae3a10004a21
parent44cc1936be0ec2d734e5e2b4e215ce2908caf46e (diff)
downloadffmpeg-ceef1ee7674f21824a3392c654465b43b06c94fe.tar.gz
cmdutils: make show_usage() use av_log()
Avoid printing on stdout when show_usage is used in an error message.
-rw-r--r--avconv.c6
-rw-r--r--ffmpeg.c6
-rw-r--r--ffplay.c6
-rw-r--r--ffprobe.c6
4 files changed, 12 insertions, 12 deletions
diff --git a/avconv.c b/avconv.c
index e02139db71..9fae43a5c2 100644
--- a/avconv.c
+++ b/avconv.c
@@ -4187,9 +4187,9 @@ static int opt_audio_qscale(OptionsContext *o, const char *opt, const char *arg)
static void show_usage(void)
{
- printf("Hyper fast Audio and Video encoder\n");
- printf("usage: %s [options] [[infile options] -i infile]... {[outfile options] outfile}...\n", program_name);
- printf("\n");
+ av_log(NULL, AV_LOG_INFO, "Hyper fast Audio and Video encoder\n");
+ av_log(NULL, AV_LOG_INFO, "usage: %s [options] [[infile options] -i infile]... {[outfile options] outfile}...\n", program_name);
+ av_log(NULL, AV_LOG_INFO, "\n");
}
static int opt_help(const char *opt, const char *arg)
diff --git a/ffmpeg.c b/ffmpeg.c
index 15ce0894ac..13d7d6cf5e 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -4593,9 +4593,9 @@ static int opt_audio_qscale(OptionsContext *o, const char *opt, const char *arg)
static void show_usage(void)
{
- printf("Hyper fast Audio and Video encoder\n");
- printf("usage: %s [options] [[infile options] -i infile]... {[outfile options] outfile}...\n", program_name);
- printf("\n");
+ av_log(NULL, AV_LOG_INFO, "Hyper fast Audio and Video encoder\n");
+ av_log(NULL, AV_LOG_INFO, "usage: %s [options] [[infile options] -i infile]... {[outfile options] outfile}...\n", program_name);
+ av_log(NULL, AV_LOG_INFO, "\n");
}
static int opt_help(const char *opt, const char *arg)
diff --git a/ffplay.c b/ffplay.c
index 1a1b3f714b..1c4289c287 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -3105,9 +3105,9 @@ static const OptionDef options[] = {
static void show_usage(void)
{
- printf("Simple media player\n");
- printf("usage: %s [options] input_file\n", program_name);
- printf("\n");
+ av_log(NULL, AV_LOG_INFO, "Simple media player\n");
+ av_log(NULL, AV_LOG_INFO, "usage: %s [options] input_file\n", program_name);
+ av_log(NULL, AV_LOG_INFO, "\n");
}
static int opt_help(const char *opt, const char *arg)
diff --git a/ffprobe.c b/ffprobe.c
index 34626a8fc9..28e056390d 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -1439,9 +1439,9 @@ end:
static void show_usage(void)
{
- printf("Simple multimedia streams analyzer\n");
- printf("usage: %s [OPTIONS] [INPUT_FILE]\n", program_name);
- printf("\n");
+ av_log(NULL, AV_LOG_INFO, "Simple multimedia streams analyzer\n");
+ av_log(NULL, AV_LOG_INFO, "usage: %s [OPTIONS] [INPUT_FILE]\n", program_name);
+ av_log(NULL, AV_LOG_INFO, "\n");
}
static int opt_format(const char *opt, const char *arg)