[Mplayer-cvslog] CVS: main/libmpdemux network.c,1.46,1.47
Bertrand Baudet
bertrand at mplayerhq.hu
Thu Jun 20 10:50:43 CEST 2002
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv15078
Modified Files:
network.c
Log Message:
Added mplayer version in the user-agent field.
Index: network.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/network.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- network.c 17 Jun 2002 08:16:47 -0000 1.46
+++ network.c 20 Jun 2002 08:50:40 -0000 1.47
@@ -27,6 +27,8 @@
#include "asf.h"
#include "rtp.h"
+#include "../version.h"
+
extern int verbose;
extern m_config_t *mconfig;
@@ -269,7 +271,7 @@
}
snprintf(str, 80, "Host: %s", server_url->hostname );
http_set_field( http_hdr, str);
- http_set_field( http_hdr, "User-Agent: MPlayer");
+ http_set_field( http_hdr, "User-Agent: MPlayer/"VERSION);
http_set_field( http_hdr, "Connection: closed");
if( http_build_request( http_hdr )==NULL ) {
return -1;
More information about the MPlayer-cvslog
mailing list