[vlc-devel] commit: telnet: use var_Inherit ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Dec 30 20:52:22 CET 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Dec 30 21:42:14 2009 +0200| [0a24da4ae7510295190c5396df75acca6d847a5f] | committer: Rémi Denis-Courmont 

telnet: use var_Inherit

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

 modules/control/telnet.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/modules/control/telnet.c b/modules/control/telnet.c
index 6718403..f35fb28 100644
--- a/modules/control/telnet.c
+++ b/modules/control/telnet.c
@@ -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( ;; )




More information about the vlc-devel mailing list