Commit 18dc9946 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vlc_module_create(): remove useless parameter

parent 2040b325
...@@ -239,7 +239,7 @@ void CacheLoad( vlc_object_t *p_this, module_bank_t *p_bank, const char *dir ) ...@@ -239,7 +239,7 @@ void CacheLoad( vlc_object_t *p_this, module_bank_t *p_bank, const char *dir )
LOAD_IMMEDIATE( pp_cache[i]->i_time ); LOAD_IMMEDIATE( pp_cache[i]->i_time );
LOAD_IMMEDIATE( pp_cache[i]->i_size ); LOAD_IMMEDIATE( pp_cache[i]->i_size );
pp_cache[i]->p_module = vlc_module_create( p_this ); pp_cache[i]->p_module = vlc_module_create();
/* Load additional infos */ /* Load additional infos */
free( pp_cache[i]->p_module->psz_object_name ); free( pp_cache[i]->p_module->psz_object_name );
......
...@@ -45,7 +45,7 @@ static void vlc_module_destruct (gc_object_t *obj) ...@@ -45,7 +45,7 @@ static void vlc_module_destruct (gc_object_t *obj)
static const char default_name[] = "unnamed"; static const char default_name[] = "unnamed";
module_t *vlc_module_create (vlc_object_t *obj) module_t *vlc_module_create (void)
{ {
module_t *module = malloc (sizeof (*module)); module_t *module = malloc (sizeof (*module));
if (module == NULL) if (module == NULL)
...@@ -77,8 +77,6 @@ module_t *vlc_module_create (vlc_object_t *obj) ...@@ -77,8 +77,6 @@ module_t *vlc_module_create (vlc_object_t *obj)
module->domain = NULL; module->domain = NULL;
module->b_builtin = false; module->b_builtin = false;
module->b_loaded = false; module->b_loaded = false;
(void)obj;
return module; return module;
} }
......
...@@ -1030,7 +1030,7 @@ static module_t * AllocatePlugin( vlc_object_t * p_this, const char *psz_file ) ...@@ -1030,7 +1030,7 @@ static module_t * AllocatePlugin( vlc_object_t * p_this, const char *psz_file )
/* Now that we have successfully loaded the module, we can /* Now that we have successfully loaded the module, we can
* allocate a structure for it */ * allocate a structure for it */
p_module = vlc_module_create( p_this ); p_module = vlc_module_create();
if( p_module == NULL ) if( p_module == NULL )
{ {
module_Unload( handle ); module_Unload( handle );
...@@ -1123,7 +1123,7 @@ static int AllocateBuiltinModule( vlc_object_t * p_this, ...@@ -1123,7 +1123,7 @@ static int AllocateBuiltinModule( vlc_object_t * p_this,
/* Now that we have successfully loaded the module, we can /* Now that we have successfully loaded the module, we can
* allocate a structure for it */ * allocate a structure for it */
p_module = vlc_module_create( p_this ); p_module = vlc_module_create();
if( p_module == NULL ) if( p_module == NULL )
return -1; return -1;
......
...@@ -133,7 +133,7 @@ struct module_t ...@@ -133,7 +133,7 @@ struct module_t
char * domain; /* gettext domain */ char * domain; /* gettext domain */
}; };
module_t *vlc_module_create (vlc_object_t *); module_t *vlc_module_create (void);
module_t *vlc_submodule_create (module_t *module); module_t *vlc_submodule_create (module_t *module);
void module_InitBank( vlc_object_t * ); void module_InitBank( vlc_object_t * );
......
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