[MPlayer-cvslog] r27881 - in trunk/stream: http.c network.c

reimar subversion at mplayerhq.hu
Sun Nov 2 18:15:14 CET 2008


Author: reimar
Date: Sun Nov  2 18:15:14 2008
New Revision: 27881

Log:
Add a noicyx:// protocol to allow easier testing for misconfigured servers.


Modified:
   trunk/stream/http.c
   trunk/stream/network.c

Modified: trunk/stream/http.c
==============================================================================
--- trunk/stream/http.c	(original)
+++ trunk/stream/http.c	Sun Nov  2 18:15:14 2008
@@ -973,7 +973,7 @@ const stream_info_t stream_info_http1 = 
   "Bertrand, Albeau, Reimar Doeffinger, Arpi?",
   "plain http",
   open_s1,
-  {"http", "http_proxy", "unsv", "icyx", NULL},
+  {"http", "http_proxy", "unsv", "icyx", "noicyx", NULL},
   NULL,
   0 // Urls are an option string
 };

Modified: trunk/stream/network.c
==============================================================================
--- trunk/stream/network.c	(original)
+++ trunk/stream/network.c	Sun Nov  2 18:15:14 2008
@@ -205,6 +205,7 @@ http_send_request( URL_t *url, off_t pos
 	else
 	    http_set_field( http_hdr, "User-Agent: MPlayer/"VERSION);
 
+	if( strcasecmp(url->protocol, "noicyx") )
 	http_set_field(http_hdr, "Icy-MetaData: 1");
 
 	if(pos>0) { 



More information about the MPlayer-cvslog mailing list