[vlc-devel] commit: logger: Remove what seems to be useless. (Pierre d'Herbemont )
git version control
git at videolan.org
Thu Dec 31 17:08:51 CET 2009
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Wed Dec 30 14:57:13 2009 +0100| [7fda3fd95b4f3e255e16a38ad752b4da5e8ddce8] | committer: Pierre d'Herbemont
logger: Remove what seems to be useless.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7fda3fd95b4f3e255e16a38ad752b4da5e8ddce8
---
modules/misc/logger.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/modules/misc/logger.c b/modules/misc/logger.c
index cf2c427..377609b 100644
--- a/modules/misc/logger.c
+++ b/modules/misc/logger.c
@@ -372,14 +372,8 @@ static void Overflow (msg_cb_data_t *p_sys, msg_item_t *p_item, unsigned overrun
int verbosity = var_CreateGetInteger( p_sys->p_intf, "log-verbose" );
if (verbosity == -1)
verbosity = var_CreateGetInteger( p_sys->p_intf, "verbose" );
- int priority = 0;
- switch( p_item->i_type )
- {
- case VLC_MSG_WARN: priority = 1; break;
- case VLC_MSG_DBG: priority = 2; break;
- }
- if (verbosity < priority)
+ if (verbosity < p_item->i_type)
return;
int canc = vlc_savecancel();
More information about the vlc-devel
mailing list