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 )
LOAD_IMMEDIATE( pp_cache[i]->i_time );
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 */
free( pp_cache[i]->p_module->psz_object_name );
......
......@@ -45,7 +45,7 @@ static void vlc_module_destruct (gc_object_t *obj)
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));
if (module == NULL)
......@@ -77,8 +77,6 @@ module_t *vlc_module_create (vlc_object_t *obj)
module->domain = NULL;
module->b_builtin = false;
module->b_loaded = false;
(void)obj;
return module;
}
......
......@@ -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
* allocate a structure for it */
p_module = vlc_module_create( p_this );
p_module = vlc_module_create();
if( p_module == NULL )
{
module_Unload( handle );
......@@ -1123,7 +1123,7 @@ static int AllocateBuiltinModule( vlc_object_t * p_this,
/* Now that we have successfully loaded the module, we can
* allocate a structure for it */
p_module = vlc_module_create( p_this );
p_module = vlc_module_create();
if( p_module == NULL )
return -1;
......
......@@ -133,7 +133,7 @@ struct module_t
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);
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