[vlc-commits] Remove msg_subscription_t.verbosity
Rémi Denis-Courmont
git at videolan.org
Thu Aug 18 23:06:39 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Aug 19 00:06:34 2011 +0300| [c22366aa97e21a2c94be5d743011490be6a7a934] | committer: Rémi Denis-Courmont
Remove msg_subscription_t.verbosity
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c22366aa97e21a2c94be5d743011490be6a7a934
---
src/misc/messages.c | 16 ----------------
1 files changed, 0 insertions(+), 16 deletions(-)
diff --git a/src/misc/messages.c b/src/misc/messages.c
index 138fd67..782b2f6 100644
--- a/src/misc/messages.c
+++ b/src/misc/messages.c
@@ -153,7 +153,6 @@ struct msg_subscription_t
libvlc_int_t *instance;
msg_callback_t func;
msg_cb_data_t *opaque;
- int verbosity;
};
/**
@@ -176,7 +175,6 @@ msg_subscription_t *msg_Subscribe (libvlc_int_t *instance, msg_callback_t cb,
sub->instance = instance;
sub->func = cb;
sub->opaque = opaque;
- sub->verbosity = 2; /* by default, give all the messages */
msg_bank_t *bank = libvlc_bank (instance);
vlc_rwlock_wrlock (&bank->lock);
@@ -340,20 +338,6 @@ void msg_GenericVa (vlc_object_t *p_this, int i_type, const char *psz_module,
if( val == kObjectPrintingEnabled ); /* Allowed */
else if( !bank->all_objects_enabled ) continue;
}
- switch( msg.i_type )
- {
- case VLC_MSG_INFO:
- case VLC_MSG_ERR:
- if( sub->verbosity < 0 ) continue;
- break;
- case VLC_MSG_WARN:
- if( sub->verbosity < 1 ) continue;
- break;
- case VLC_MSG_DBG:
- if( sub->verbosity < 2 ) continue;
- break;
- }
-
sub->func (sub->opaque, &msg);
}
vlc_rwlock_unlock (&bank->lock);
More information about the vlc-commits
mailing list