1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

fftools/cmdutils: also print warnings when using -sinks and -sources

Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Marton Balint 2020-10-08 22:26:09 +02:00
parent a6f6726a81
commit 87c1b74233

View File

@ -2308,7 +2308,7 @@ int show_sources(void *optctx, const char *opt, const char *arg)
int ret = 0; int ret = 0;
int error_level = av_log_get_level(); int error_level = av_log_get_level();
av_log_set_level(AV_LOG_ERROR); av_log_set_level(AV_LOG_WARNING);
if ((ret = show_sinks_sources_parse_arg(arg, &dev, &opts)) < 0) if ((ret = show_sinks_sources_parse_arg(arg, &dev, &opts)) < 0)
goto fail; goto fail;
@ -2346,7 +2346,7 @@ int show_sinks(void *optctx, const char *opt, const char *arg)
int ret = 0; int ret = 0;
int error_level = av_log_get_level(); int error_level = av_log_get_level();
av_log_set_level(AV_LOG_ERROR); av_log_set_level(AV_LOG_WARNING);
if ((ret = show_sinks_sources_parse_arg(arg, &dev, &opts)) < 0) if ((ret = show_sinks_sources_parse_arg(arg, &dev, &opts)) < 0)
goto fail; goto fail;