Commit 540d82b4 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove the old module config lock

parent b2c266cd
...@@ -178,7 +178,6 @@ struct module_config_t ...@@ -178,7 +178,6 @@ struct module_config_t
int i_action; /* actions list size */ int i_action; /* actions list size */
/* Misc */ /* Misc */
vlc_mutex_t *p_lock; /* Lock to use when modifying the config */
bool b_dirty; /* Dirty flag to indicate a config change */ bool b_dirty; /* Dirty flag to indicate a config change */
bool b_advanced; /* Flag to indicate an advanced option */ bool b_advanced; /* Flag to indicate an advanced option */
bool b_internal; /* Flag to indicate option is not to be shown */ bool b_internal; /* Flag to indicate option is not to be shown */
......
...@@ -392,8 +392,6 @@ static int CacheLoadConfig( module_t *p_module, FILE *file ) ...@@ -392,8 +392,6 @@ static int CacheLoadConfig( module_t *p_module, FILE *file )
p_module->p_config[i].b_dirty = false; p_module->p_config[i].b_dirty = false;
p_module->p_config[i].p_lock = &p_module->lock;
if( p_module->p_config[i].i_list ) if( p_module->p_config[i].i_list )
{ {
if( p_module->p_config[i].ppsz_list ) if( p_module->p_config[i].ppsz_list )
......
...@@ -37,7 +37,6 @@ static void vlc_module_destruct (gc_object_t *obj) ...@@ -37,7 +37,6 @@ static void vlc_module_destruct (gc_object_t *obj)
{ {
module_t *module = vlc_priv (obj, module_t); module_t *module = vlc_priv (obj, module_t);
vlc_mutex_destroy (&module->lock);
free (module->psz_object_name); free (module->psz_object_name);
free (module); free (module);
} }
...@@ -56,7 +55,6 @@ module_t *vlc_module_create (vlc_object_t *obj) ...@@ -56,7 +55,6 @@ module_t *vlc_module_create (vlc_object_t *obj)
module->parent = NULL; module->parent = NULL;
module->submodule_count = 0; module->submodule_count = 0;
vlc_gc_init (module, vlc_module_destruct); vlc_gc_init (module, vlc_module_destruct);
vlc_mutex_init (&module->lock);
module->psz_shortname = NULL; module->psz_shortname = NULL;
module->psz_longname = (char*)default_name; module->psz_longname = (char*)default_name;
...@@ -135,7 +133,6 @@ static module_config_t *vlc_config_create (module_t *module, int type) ...@@ -135,7 +133,6 @@ static module_config_t *vlc_config_create (module_t *module, int type)
memset (tab + confsize, 0, sizeof (tab[confsize])); memset (tab + confsize, 0, sizeof (tab[confsize]));
tab[confsize].i_type = type; tab[confsize].i_type = type;
tab[confsize].p_lock = &module->lock;
if (type & CONFIG_ITEM) if (type & CONFIG_ITEM)
{ {
......
...@@ -102,7 +102,6 @@ struct module_t ...@@ -102,7 +102,6 @@ struct module_t
module_t *parent; module_t *parent;
unsigned submodule_count; unsigned submodule_count;
gc_object_t vlc_gc_data; gc_object_t vlc_gc_data;
vlc_mutex_t lock;
/* /*
* Variables set by the module to identify itself * Variables set by the module to identify itself
......
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