]> git.sesse.net Git - vlc/commitdiff
httpd: don't inherit from libvlc object
authorPierre Ynard <linkfanel@yahoo.fr>
Tue, 4 Oct 2011 01:24:05 +0000 (03:24 +0200)
committerPierre Ynard <linkfanel@yahoo.fr>
Tue, 4 Oct 2011 01:24:05 +0000 (03:24 +0200)
This will allow normal variable inheritance

src/network/httpd.c

index b92139b35b16a29af680bc4b8cac3955edad0685..8e64b26149abf2ca12137095928d3c1cdfc536f0 100644 (file)
@@ -1068,8 +1068,8 @@ static httpd_host_t *httpd_HostCreate( vlc_object_t *p_this,
     vlc_cond_init( &host->wait );
     host->i_ref = 1;
 
-    char *hostname = var_InheritString( p_this->p_libvlc, hostvar );
-    unsigned port = var_InheritInteger( p_this->p_libvlc, portvar );
+    char *hostname = var_InheritString( p_this, hostvar );
+    unsigned port = var_InheritInteger( p_this, portvar );
     host->fds = net_ListenTCP( p_this, hostname, port );
     free( hostname );
     if( host->fds == NULL )