Skip to content
Snippets Groups Projects
Commit 4bc4577b authored by Steve Lhomme's avatar Steve Lhomme Committed by Felix Paul Kühne
Browse files

avcodec: don't use the console "quiet" parameter

Just use --verbose=-1 which is strictly equivalent.

This module should not depend on another module's option. And we don't
really need that option anyway.
parent d9e5c65d
No related branches found
No related tags found
1 merge request!3398avcodec: don't use the console "quiet" parameter
Pipeline #321474 passed with stage
in 17 minutes and 43 seconds
......@@ -80,25 +80,23 @@ static inline void vlc_init_avutil(vlc_object_t *obj)
{
int level = AV_LOG_QUIET;
if (!var_InheritBool(obj, "quiet")) {
int64_t verbose = var_InheritInteger(obj, "verbose");
if (verbose >= 0) switch(verbose + VLC_MSG_ERR) {
case VLC_MSG_ERR:
level = AV_LOG_ERROR;
break;
case VLC_MSG_WARN:
level = AV_LOG_WARNING;
break;
case VLC_MSG_INFO:
level = AV_LOG_INFO;
break;
case VLC_MSG_DBG:
level = AV_LOG_VERBOSE;
break;
default:
level = AV_LOG_DEBUG;
break;
}
int64_t verbose = var_InheritInteger(obj, "verbose");
if (verbose >= 0) switch(verbose + VLC_MSG_ERR) {
case VLC_MSG_ERR:
level = AV_LOG_ERROR;
break;
case VLC_MSG_WARN:
level = AV_LOG_WARNING;
break;
case VLC_MSG_INFO:
level = AV_LOG_INFO;
break;
case VLC_MSG_DBG:
level = AV_LOG_VERBOSE;
break;
default:
level = AV_LOG_DEBUG;
break;
}
av_log_set_level(level);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment