mirror of
https://github.com/mpv-player/mpv
synced 2025-03-01 20:00:37 +00:00
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?",
|
"Bertrand, Albeau, Reimar Doeffinger, Arpi?",
|
||||||
"plain http",
|
"plain http",
|
||||||
open_s1,
|
open_s1,
|
||||||
{"http", "http_proxy", "unsv", "icyx", NULL},
|
{"http", "http_proxy", "unsv", "icyx", "noicyx", NULL},
|
||||||
NULL,
|
NULL,
|
||||||
0 // Urls are an option string
|
0 // Urls are an option string
|
||||||
};
|
};
|
||||||
|
@ -205,6 +205,7 @@ http_send_request( URL_t *url, off_t pos ) {
|
|||||||
else
|
else
|
||||||
http_set_field( http_hdr, "User-Agent: MPlayer/"VERSION);
|
http_set_field( http_hdr, "User-Agent: MPlayer/"VERSION);
|
||||||
|
|
||||||
|
if( strcasecmp(url->protocol, "noicyx") )
|
||||||
http_set_field(http_hdr, "Icy-MetaData: 1");
|
http_set_field(http_hdr, "Icy-MetaData: 1");
|
||||||
|
|
||||||
if(pos>0) {
|
if(pos>0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user