Commit db80e894 authored by Gildas Bazin's avatar Gildas Bazin

* src/misc/modules.c: in plugins cache mode, force immediate module loading if...

* src/misc/modules.c: in plugins cache mode, force immediate module loading if the module's config contains callbacks or actions. This could be avoided but a new api call will have to be introduced for that.
parent 87570dbb
......@@ -934,8 +934,20 @@ static int AllocatePluginFile( vlc_object_t * p_this, char * psz_file,
}
else
{
module_config_t *p_item;
p_module = p_cache_entry->p_module;
p_module->b_loaded = VLC_FALSE;
/* For now we force loading if the module's config contains
* callbacks or actions.
* Could be optimized by adding an API call.*/
for( p_item = p_module->p_config;
p_item->i_type != CONFIG_HINT_END; p_item++ )
{
if( p_item->pf_callback || p_item->i_action )
p_module = AllocatePlugin( p_this, psz_file );
}
}
}
......
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