]> git.sesse.net Git - vlc/blobdiff - modules/access_output/http.c
* modules/access_out/http.c :
[vlc] / modules / access_output / http.c
index 512d24cfb0c665092d0b0c7d9d16db499fc39e51..9e806850697bc5fdddd55fdd9d4f7a0baaf3a86a 100644 (file)
@@ -2,7 +2,7 @@
  * http.c
  *****************************************************************************
  * Copyright (C) 2001-2003 VideoLAN
- * $Id: http.c,v 1.2 2003/02/25 17:17:43 fenrir Exp $
+ * $Id: http.c,v 1.5 2003/08/03 16:36:20 bigben Exp $
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *
@@ -195,7 +195,7 @@ static int Open( vlc_object_t *p_this )
 
         free( psz_name );
         free( psz_file_name );
-        free( p_access );
+        free( p_sys );
         return( VLC_EGENERIC );
     }
 
@@ -210,7 +210,7 @@ static int Open( vlc_object_t *p_this )
 
         free( psz_name );
         free( psz_file_name );
-        free( p_access );
+        free( p_sys );
         return( VLC_EGENERIC );
     }
 
@@ -218,7 +218,8 @@ static int Open( vlc_object_t *p_this )
         p_sys->p_httpd->pf_register_stream( p_sys->p_httpd,
                                             psz_file_name,
                                             GetMime( psz_file_name ),
-                                            NULL, NULL );
+                                            sout_cfg_find_value( p_access->p_cfg, "user" ),
+                                            sout_cfg_find_value( p_access->p_cfg, "pwd" ) );
 
     if( !p_sys->p_httpd_stream )
     {
@@ -228,7 +229,7 @@ static int Open( vlc_object_t *p_this )
 
         free( psz_name );
         free( psz_file_name );
-        free( p_access );
+        free( p_sys );
 
         return( VLC_EGENERIC );
     }