[vlc-devel] [PATCH] avcodec: Handle -vvv & more as AV_LOG_DEBUG

Hugo Beauzée-Luyssen hugo at beauzee.fr
Tue Dec 10 13:01:35 CET 2019


We started using -vvvv to enable extra logging in some modules, but this
value is not handled by this switch
---
 modules/codec/avcodec/avcommon.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/codec/avcodec/avcommon.h b/modules/codec/avcodec/avcommon.h
index 1962162a7e..671cde5c81 100644
--- a/modules/codec/avcodec/avcommon.h
+++ b/modules/codec/avcodec/avcommon.h
@@ -95,9 +95,8 @@ static inline void vlc_init_avutil(vlc_object_t *obj)
         case VLC_MSG_DBG:
             level = AV_LOG_VERBOSE;
             break;
-        case VLC_MSG_DBG+1:
-            level = AV_LOG_DEBUG;
         default:
+            level = AV_LOG_DEBUG;
             break;
         }
     }
-- 
2.20.1



More information about the vlc-devel mailing list