diff --git a/src/modules/cache.c b/src/modules/cache.c index 241efc757973ddf5b060cd2db2d5de1337b82717..d24a5ab06f16f556aea457b70d441085c21a86e0 100644 --- a/src/modules/cache.c +++ b/src/modules/cache.c @@ -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 ); diff --git a/src/modules/entry.c b/src/modules/entry.c index 7660fd1775f0f1b2cd064e0ff45058dda3c2e61a..b6fb2d9390c1d0d979dd1a896999daebfe1d1418 100644 --- a/src/modules/entry.c +++ b/src/modules/entry.c @@ -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; } diff --git a/src/modules/modules.c b/src/modules/modules.c index 6ddbb88e7b48514a512ea6c316a1a8036de2e14b..295462b446d90a77f753a587915ac42d108042fa 100644 --- a/src/modules/modules.c +++ b/src/modules/modules.c @@ -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; diff --git a/src/modules/modules.h b/src/modules/modules.h index 6523d153a356d4f43cc06aba4c2b31821b182e0f..4347739b836f3cace4c0fb7fc1b056e3f4bf751e 100644 --- a/src/modules/modules.h +++ b/src/modules/modules.h @@ -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 * );