[vlc-devel] commit: Netsync: 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:36:19 2009 +0200| [224be7ea73b13e0eae992e8a7530fc31794a6a38] | committer: Rémi Denis-Courmont 

Netsync: use var_Inherit

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

 modules/control/netsync.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/control/netsync.c b/modules/control/netsync.c
index 76a5a23..b834914 100644
--- a/modules/control/netsync.c
+++ b/modules/control/netsync.c
@@ -100,9 +100,9 @@ static int Activate( vlc_object_t *p_this )
     intf_thread_t *p_intf = (intf_thread_t*)p_this;
     int fd;
 
-    if( config_GetInt( p_intf, "netsync-master" ) <= 0 )
+    if( !var_InheritInteger( p_intf, "netsync-master" ) )
     {
-        char *psz_master = config_GetPsz( p_intf, "netsync-master-ip" );
+        char *psz_master = var_InheritString( p_intf, "netsync-master-ip" );
         if( psz_master == NULL )
         {
             msg_Err( p_intf, "master address not specified" );




More information about the vlc-devel mailing list