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

Hugo Beauzée-Luyssen git at videolan.org
Thu Dec 19 18:01:15 CET 2019


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Dec 10 13:01:35 2019 +0100| [f2f53504fcbc63f56b814e5a6052c8ace6540b3f] | committer: Hugo Beauzée-Luyssen

avcodec: Handle -vvv & more as AV_LOG_DEBUG

We started using -vvvv to enable extra logging in some modules, but this
value is not handled by this switch

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f2f53504fcbc63f56b814e5a6052c8ace6540b3f
---

 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;
         }
     }



More information about the vlc-commits mailing list