Mercurial > mplayer.hg
changeset 6559:e7c244db6174
Added -user -pass options for http authentication.
author | bertrand |
---|---|
date | Tue, 25 Jun 2002 08:09:16 +0000 |
parents | b379b061ce50 |
children | 1016577017dc |
files | cfg-common.h cfg-mencoder.h cfg-mplayer.h |
diffstat | 3 files changed, 19 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/cfg-common.h Tue Jun 25 08:04:52 2002 +0000 +++ b/cfg-common.h Tue Jun 25 08:09:16 2002 +0000 @@ -39,6 +39,13 @@ {"csslib", "MPlayer was compiled WITHOUT libcss support!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, #endif +#ifdef STREAMING + {"user", &network_username, CONF_TYPE_STRING, 0, 0, 0, NULL}, + {"pass", &network_password, CONF_TYPE_STRING, 0, 0, 0, NULL}, +#else + {"user", "MPlayer was compiled WITHOUT streaming(network) support\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, +#endif + // ------------------------- demuxer options -------------------- // number of frames to play/convert
--- a/cfg-mencoder.h Tue Jun 25 08:04:52 2002 +0000 +++ b/cfg-mencoder.h Tue Jun 25 08:09:16 2002 +0000 @@ -20,6 +20,12 @@ extern struct config divx4opts_conf[]; #endif +#ifdef STREAMING +/* defined in network.c */ +extern char *network_username; +extern char *network_password; +#endif + #ifdef HAVE_MP3LAME struct config lameopts_conf[]={ {"q", &lame_param_quality, CONF_TYPE_INT, CONF_RANGE, 0, 9, NULL},
--- a/cfg-mplayer.h Tue Jun 25 08:04:52 2002 +0000 +++ b/cfg-mplayer.h Tue Jun 25 08:09:16 2002 +0000 @@ -99,6 +99,12 @@ extern int nortc; #endif +#ifdef STREAMING +/* defined in network.c */ +extern char *network_username; +extern char *network_password; +#endif + /* from libvo/aspect.c */ extern float monitor_aspect;