[vlc-commits] commit: logger: fix verbosity ( Rafaël Carré )
git at videolan.org
git at videolan.org
Wed Jul 28 16:12:07 CEST 2010
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Wed Jul 28 16:11:52 2010 +0200| [a6367fb75fb9c15fdbf91d8005a1234b9ad90f54] | committer: Rafaël Carré
logger: fix verbosity
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a6367fb75fb9c15fdbf91d8005a1234b9ad90f54
---
modules/misc/logger.c | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/modules/misc/logger.c b/modules/misc/logger.c
index bb21c8d..e834722 100644
--- a/modules/misc/logger.c
+++ b/modules/misc/logger.c
@@ -373,8 +373,20 @@ static void Overflow (msg_cb_data_t *p_sys, msg_item_t *p_item, unsigned overrun
if (verbosity == -1)
verbosity = var_CreateGetInteger( p_sys->p_intf, "verbose" );
- if (verbosity < p_item->i_type)
- return;
+ switch( p_item->i_type )
+ {
+ case VLC_MSG_INFO:
+ case VLC_MSG_ERR:
+ if( verbosity < 0 ) return;
+ break;
+ case VLC_MSG_WARN:
+ if( verbosity < 1 ) return;
+ break;
+ case VLC_MSG_DBG:
+ if( verbosity < 2 ) return;
+ break;
+ }
+
int canc = vlc_savecancel();
More information about the vlc-commits
mailing list