]> git.sesse.net Git - vlc/commitdiff
LUA: use psz_intf instead of b_force
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 28 Jan 2010 18:58:52 +0000 (20:58 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 28 Jan 2010 19:19:55 +0000 (21:19 +0200)
modules/misc/lua/intf.c

index eaae20b4ded19d2507e2540e931415f2ca3f6340..9c8c64b8fe757ca8986943e8b3681cf71b0a93f9 100644 (file)
@@ -162,7 +162,7 @@ int Open_LuaIntf( vlc_object_t *p_this )
     config_ChainParse( p_intf, "lua-", ppsz_intf_options, p_intf->p_cfg );
     char *psz_name = NULL;
 
-    if( !p_intf->b_force )
+    if( !p_intf->psz_intf || !*p_intf->psz_intf )
         psz_name = strdup( "rc" );
     else
         psz_name = GetModuleName( p_intf );