Changeset aba56b6b8399dd4b582bdab334a28cd7ea8f60de

Show
Ignore:
Timestamp:
03/08/03 18:36:20 (5 years ago)
Author:
Benjamin Pracht <bigben@videolan.org>
git-committer:
Benjamin Pracht <bigben@videolan.org> 1059928580 +0000
git-parent:

[e4c2f343ae6a2d06b6ad8cafdf35dd43e7b7e1e1]

git-author:
Benjamin Pracht <bigben@videolan.org> 1059928580 +0000
Message:

* modules/access_out/http.c :

using ability to give parametters to a specific sout module to set user and password fot http access out.

new syntax is '#dst{access=http{user=foo,pass=bar}}

--sout-http-user and --sout-http-pwd parametters have been deleted.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/access_output/http.c

    rbb3720f raba56b6  
    33 ***************************************************************************** 
    44 * Copyright (C) 2001-2003 VideoLAN 
    5  * $Id: http.c,v 1.4 2003/07/31 19:10:14 bigben Exp $ 
     5 * $Id: http.c,v 1.5 2003/08/03 16:36:20 bigben Exp $ 
    66 * 
    77 * Authors: Laurent Aimar <fenrir@via.ecp.fr> 
     
    5656    add_shortcut( "http" ); 
    5757    set_callbacks( Open, Close ); 
    58     add_string( "sout-http-user", NULL, NULL, "HTTP Stream Ouput user name", "User name for Basic Authentification on HTTP Stream Output module", VLC_TRUE ); 
    59     add_string( "sout-http-pwd", NULL, NULL, "HTTP Stream Ouput password", "Password for Basic Authentification on HTTP Stream Output module", VLC_TRUE ); 
    6058vlc_module_end(); 
    6159 
     
    221219                                            psz_file_name, 
    222220                                            GetMime( psz_file_name ), 
    223                                             config_GetPsz( p_access, "sout-http-user" ),  
    224                                             config_GetPsz( p_access, "sout-http-pwd" ) ); 
     221                                            sout_cfg_find_value( p_access->p_cfg, "user" ), 
     222                                            sout_cfg_find_value( p_access->p_cfg, "pwd" ) ); 
    225223 
    226224    if( !p_sys->p_httpd_stream )