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[] = ...@@ -171,8 +171,10 @@ static const char *const ppsz_snap_formats[] =
#define VERBOSE_OBJECTS_LONGTEXT N_( \ #define VERBOSE_OBJECTS_LONGTEXT N_( \
"This is a ',' separated string, each objects should be prefixed by " \ "This is a ',' separated string, each objects should be prefixed by " \
"a '+' or a '-' to respectively enable or disable it. The keyword " \ "a '+' or a '-' to respectively enable or disable it. The keyword " \
"'all' refers to all objects. Note, you still need to use -vvv " \ "'all' refers to all objects. Objects can be refered to by their " \
"to actually display debug message.") "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_TEXT N_("Be quiet")
#define QUIET_LONGTEXT N_( \ #define QUIET_LONGTEXT N_( \
......
...@@ -603,13 +603,22 @@ static void PrintMsg ( vlc_object_t * p_this, msg_item_t * p_item ) ...@@ -603,13 +603,22 @@ static void PrintMsg ( vlc_object_t * p_this, msg_item_t * p_item )
psz_object = p_item->psz_object_type; psz_object = p_item->psz_object_type;
void * val = vlc_dictionary_value_for_key( &priv->msg_enabled_objects, void * val = vlc_dictionary_value_for_key( &priv->msg_enabled_objects,
psz_object ); p_item->psz_module );
if( val == kObjectPrintingDisabled ) if( val == kObjectPrintingDisabled )
return; return;
if( val == kObjectPrintingEnabled ) if( val == kObjectPrintingEnabled )
/* Allowed */; /* Allowed */;
else if( !priv->msg_all_objects_enabled ) else
return; {
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 (); int canc = vlc_savecancel ();
#ifdef UNDER_CE #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