]> git.sesse.net Git - vlc/commitdiff
Simplify.
authorAntoine Cellerier <dionoea@videolan.org>
Sat, 28 Jun 2008 22:20:01 +0000 (00:20 +0200)
committerAntoine Cellerier <dionoea@videolan.org>
Sat, 28 Jun 2008 22:20:15 +0000 (00:20 +0200)
src/modules/modules.c

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