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

Simplify.

parent e81f6fca
...@@ -371,11 +371,7 @@ module_t * __module_Need( vlc_object_t *p_this, const char *psz_capability, ...@@ -371,11 +371,7 @@ module_t * __module_Need( vlc_object_t *p_this, const char *psz_capability,
/* Deal with variables */ /* Deal with variables */
if( psz_name && psz_name[0] == '$' ) if( psz_name && psz_name[0] == '$' )
{ {
vlc_value_t val; psz_name = psz_var = var_CreateGetString( p_this, psz_name + 1 );
var_Create( p_this, psz_name + 1, VLC_VAR_MODULE | VLC_VAR_DOINHERIT );
var_Get( p_this, psz_name + 1, &val );
psz_var = val.psz_string;
psz_name = psz_var;
} }
/* Count how many different shortcuts were asked for */ /* Count how many different shortcuts were asked for */
......
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