Commit 4a82316d authored by Antoine Cellerier's avatar Antoine Cellerier

Simplify.

parent 959c2a7a
...@@ -1044,7 +1044,6 @@ static int AllocatePluginFile( vlc_object_t * p_this, char * psz_file, ...@@ -1044,7 +1044,6 @@ static int AllocatePluginFile( vlc_object_t * p_this, char * psz_file,
} }
else else
{ {
vlc_bool_t b_force_load = VLC_FALSE;
module_config_t *p_item = NULL, *p_end = NULL; module_config_t *p_item = NULL, *p_end = NULL;
p_module = p_cache_entry->p_module; p_module = p_cache_entry->p_module;
...@@ -1057,15 +1056,12 @@ static int AllocatePluginFile( vlc_object_t * p_this, char * psz_file, ...@@ -1057,15 +1056,12 @@ static int AllocatePluginFile( vlc_object_t * p_this, char * psz_file,
p_item < p_end; p_item++ ) p_item < p_end; p_item++ )
{ {
if( p_item->pf_callback || p_item->i_action ) if( p_item->pf_callback || p_item->i_action )
{
b_force_load = VLC_TRUE;
}
}
if( b_force_load == VLC_TRUE )
{ {
module_t *p_new_module = AllocatePlugin( p_this, psz_file ); module_t *p_new_module = AllocatePlugin( p_this, psz_file );
vlc_object_attach( p_module, p_new_module ); vlc_object_attach( p_module, p_new_module );
p_module = p_new_module; p_module = p_new_module;
break;
}
} }
} }
} }
......
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