[vlc-commits] [Git][videolan/vlc][master] avcodec: don't use the console "quiet" parameter

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Sat Mar 11 12:02:19 UTC 2023



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
4bc4577b by Steve Lhomme at 2023-03-11T11:37:41+00:00
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.

- - - - -


1 changed file:

- modules/codec/avcodec/avcommon.h


Changes:

=====================================
modules/codec/avcodec/avcommon.h
=====================================
@@ -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);



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4bc4577b9953125c4af6fc3d67f3d0eb5cc85806

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4bc4577b9953125c4af6fc3d67f3d0eb5cc85806
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list