mirror of https://github.com/mpv-player/mpv
Added -user -pass options for http authentication.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6560 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f7f0dc084c
commit
09c7e3191e
|
@ -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
|
||||
|
|
|
@ -20,6 +20,12 @@ extern void revertPPOpt(void *conf, char* opt);
|
|||
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},
|
||||
|
|
|
@ -99,6 +99,12 @@ extern int xinerama_screen;
|
|||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue