]> git.sesse.net Git - vlc/commitdiff
telnet: use var_Inherit
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 30 Dec 2009 19:42:14 +0000 (21:42 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 30 Dec 2009 19:50:43 +0000 (21:50 +0200)
modules/control/telnet.c

index 67184032551317df8293c51be5b5a395352c10ef..f35fb288b6f3f033a0218794eaceb2581b8e421f 100644 (file)
@@ -171,9 +171,8 @@ static int Open( vlc_object_t *p_this )
 
     msg_Info( p_intf, "using the VLM interface plugin..." );
 
-    i_telnetport = config_GetInt( p_intf, "telnet-port" );
-    psz_address  = config_GetPsz( p_intf, "telnet-host" );
-
+    i_telnetport = var_InheritInteger( p_intf, "telnet-port" );
+    psz_address  = var_InheritString( p_intf, "telnet-host" );
     vlc_UrlParse(&url, psz_address, 0);
     free( psz_address );
 
@@ -247,7 +246,7 @@ static void Run( intf_thread_t *p_intf )
         nlisten++; /* How many listening sockets do we have? */
 
     /* FIXME: make sure config_* is cancel-safe */
-    psz_password = config_GetPsz( p_intf, "telnet-password" );
+    psz_password = var_InheritString( p_intf, "telnet-password" );
     vlc_cleanup_push( free, psz_password );
 
     for( ;; )