Commit 29aab237 authored by Antoine Cellerier's avatar Antoine Cellerier

Also allow filtering based on module names.

parent 9f9d8982
......@@ -171,8 +171,10 @@ static const char *const ppsz_snap_formats[] =
#define VERBOSE_OBJECTS_LONGTEXT N_( \
"This is a ',' separated string, each objects should be prefixed by " \
"a '+' or a '-' to respectively enable or disable it. The keyword " \
"'all' refers to all objects. Note, you still need to use -vvv " \
"to actually display debug message.")
"'all' refers to all objects. Objects can be refered to by their " \
"type or name. Rules applying to named objects take precendence " \
"over rules applying to object types. Note that you still need to " \
"use -vvv to actually display debug message.")
#define QUIET_TEXT N_("Be quiet")
#define QUIET_LONGTEXT N_( \
......
......@@ -603,13 +603,22 @@ static void PrintMsg ( vlc_object_t * p_this, msg_item_t * p_item )
psz_object = p_item->psz_object_type;
void * val = vlc_dictionary_value_for_key( &priv->msg_enabled_objects,
psz_object );
p_item->psz_module );
if( val == kObjectPrintingDisabled )
return;
if( val == kObjectPrintingEnabled )
/* Allowed */;
else if( !priv->msg_all_objects_enabled )
return;
else
{
val = vlc_dictionary_value_for_key( &priv->msg_enabled_objects,
psz_object );
if( val == kObjectPrintingDisabled )
return;
if( val == kObjectPrintingEnabled )
/* Allowed */;
else if( !priv->msg_all_objects_enabled )
return;
}
int canc = vlc_savecancel ();
#ifdef UNDER_CE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment