[vlc-devel] commit: Simplify. (Antoine Cellerier )

git version control git at videolan.org
Sun Jun 29 00:17:41 CEST 2008


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Sun Jun 29 00:20:01 2008 +0200| [4a28278bdaf1d5b3bf978b9c1725a61e104de93c]

Simplify.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4a28278bdaf1d5b3bf978b9c1725a61e104de93c
---

 src/modules/modules.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/src/modules/modules.c b/src/modules/modules.c
index e613524..9ff601b 100644
--- a/src/modules/modules.c
+++ b/src/modules/modules.c
@@ -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 */




More information about the vlc-devel mailing list