mirror of https://github.com/mpv-player/mpv
Add a noicyx:// protocol to allow easier testing for misconfigured servers.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27881 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6818a5e843
commit
863a334a9f
|
@ -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
|
||||
};
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue