Commit 262c049b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Consistent naming

parent 1bfa2aad
...@@ -191,7 +191,7 @@ struct module_config_t ...@@ -191,7 +191,7 @@ struct module_config_t
vlc_bool_t b_autosave; /* Config will be auto-saved at exit time */ vlc_bool_t b_autosave; /* Config will be auto-saved at exit time */
vlc_bool_t b_unsaveable; /* Config should be saved */ vlc_bool_t b_unsaveable; /* Config should be saved */
vlc_bool_t b_unsafe; vlc_bool_t b_safe;
}; };
/***************************************************************************** /*****************************************************************************
......
...@@ -320,7 +320,7 @@ void __config_ChainParse( vlc_object_t *p_this, const char *psz_prefix, ...@@ -320,7 +320,7 @@ void __config_ChainParse( vlc_object_t *p_this, const char *psz_prefix,
msg_Warn( p_this, "Option %s is obsolete. Use %s instead.", msg_Warn( p_this, "Option %s is obsolete. Use %s instead.",
name, psz_name ); name, psz_name );
} }
if( p_conf->b_unsafe ) if( p_conf->b_safe )
{ {
int policy = config_GetInt( p_this, "security-policy" ); int policy = config_GetInt( p_this, "security-policy" );
switch( policy ) switch( policy )
......
...@@ -1099,7 +1099,7 @@ void __var_OptionParse( vlc_object_t *p_obj, const char *psz_option ) ...@@ -1099,7 +1099,7 @@ void __var_OptionParse( vlc_object_t *p_obj, const char *psz_option )
/* check if option is unsafe */ /* check if option is unsafe */
{ {
module_config_t *p_config = config_FindConfig( p_obj, psz_name ); module_config_t *p_config = config_FindConfig( p_obj, psz_name );
if( p_config->b_unsafe ) if( p_config->b_safe )
{ {
int policy = config_GetInt( p_obj, "security-policy" ); int policy = config_GetInt( p_obj, "security-policy" );
switch( policy ) switch( policy )
......
...@@ -412,7 +412,7 @@ int vlc_config_set (module_config_t *restrict item, int id, ...) ...@@ -412,7 +412,7 @@ int vlc_config_set (module_config_t *restrict item, int id, ...)
} }
case VLC_CONFIG_SAFE: case VLC_CONFIG_SAFE:
item->b_unsafe = VLC_TRUE; item->b_safe = VLC_TRUE;
ret = 0; ret = 0;
break; break;
} }
......
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