# HG changeset patch # User reimar # Date 1225646114 0 # Node ID 28deb37052cdd738b54ece2c4338045d4ce4e618 # Parent 87da3db93a44ef917cb09f5fb37d66fd477948e8 Add a noicyx:// protocol to allow easier testing for misconfigured servers. diff -r 87da3db93a44 -r 28deb37052cd stream/http.c --- a/stream/http.c Sun Nov 02 16:46:02 2008 +0000 +++ b/stream/http.c Sun Nov 02 17:15:14 2008 +0000 @@ -973,7 +973,7 @@ "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 }; diff -r 87da3db93a44 -r 28deb37052cd stream/network.c --- a/stream/network.c Sun Nov 02 16:46:02 2008 +0000 +++ b/stream/network.c Sun Nov 02 17:15:14 2008 +0000 @@ -205,6 +205,7 @@ 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) {