]> git.sesse.net Git - vlc/blobdiff - modules/control/http/http.c
Add --data-path option. Access the src share directory now works from build tree.
[vlc] / modules / control / http / http.c
index fe043e9808f3612dbfdb1ac63056f061ec96c2c1..ec762d0bbe652816d07bb182ddd3c617efcca409 100644 (file)
@@ -232,9 +232,10 @@ static int Open( vlc_object_t *p_this )
     psz_src = config_GetPsz( p_intf, "http-src" );
     if( ( psz_src == NULL ) || ( *psz_src == '\0' ) )
     {
-        const char *data_path = config_GetDataDir ();
+        char *data_path = config_GetDataDir( p_intf );
         if( asprintf( &psz_src, "%s" DIR_SEP "http", data_path ) == -1 )
             psz_src = NULL;
+        free( data_path );
     }
 
     if( !psz_src || *psz_src == '\0' )