[Mplayer-cvslog] CVS: main/libmpdemux network.c,1.53,1.54
Bertrand Baudet
bertrand at mplayerhq.hu
Wed Jun 26 01:56:36 CEST 2002
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv25581
Modified Files:
network.c
Log Message:
Changed the -pass option to -passwd to avoid clash with mencoder option.
Index: network.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/network.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -r1.53 -r1.54
--- network.c 25 Jun 2002 08:04:52 -0000 1.53
+++ network.c 25 Jun 2002 23:56:33 -0000 1.54
@@ -32,7 +32,7 @@
extern int verbose;
extern m_config_t *mconfig;
-/* Variables for the command line option -user & -pass */
+/* Variables for the command line option -user & -passwd */
char *network_username;
char *network_password;
@@ -344,7 +344,7 @@
int ret;
if( *auth_retry==1 ) {
mp_msg(MSGT_NETWORK,MSGL_ERR,"Authentication failed\n");
- mp_msg(MSGT_NETWORK,MSGL_ERR,"Please use the option -user and -pass to provide your username/password for a list of URLs,\n");
+ mp_msg(MSGT_NETWORK,MSGL_ERR,"Please use the option -user and -passwd to provide your username/password for a list of URLs,\n");
mp_msg(MSGT_NETWORK,MSGL_ERR,"or form an URL like: http://username:password@hostname/file\n");
return -1;
}
@@ -381,14 +381,14 @@
strcpy(url->username, username);
} else {
mp_msg(MSGT_NETWORK,MSGL_ERR,"Unable to read the username\n");
- mp_msg(MSGT_NETWORK,MSGL_ERR,"Please use the option -user and -pass to provide your username/password for a list of URLs,\n");
+ mp_msg(MSGT_NETWORK,MSGL_ERR,"Please use the option -user and -passwd to provide your username/password for a list of URLs,\n");
mp_msg(MSGT_NETWORK,MSGL_ERR,"or form an URL like: http://username:password@hostname/file\n");
return -1;
}
- ret = m_config_is_option_set(mconfig,"pass");
+ ret = m_config_is_option_set(mconfig,"passwd");
if( ret==1 ) {
char *password;
- password = *((char**)m_config_get_option_ptr(mconfig, "pass"));
+ password = *((char**)m_config_get_option_ptr(mconfig, "passwd"));
if( password==NULL ) return -1;
url->password = (char*)malloc(strlen(password)+1);
if( url->password==NULL ) {
More information about the MPlayer-cvslog
mailing list