1
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 07:33:46 +01:00

Disable http->mmshttp rewriting hack introduced in r25168,

unfortunately WMP is not the only one using asx.
Fixes http://www.fresh80s.de/listen.wax


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25960 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2008-02-08 18:28:12 +00:00
parent 398e1c1595
commit d794982367

View File

@ -448,7 +448,10 @@ asx_parse_ref(ASX_Parser_t* parser, char** attribs, play_tree_t* pt) {
asx_warning_attrib_required(parser,"REF" ,"HREF" ); asx_warning_attrib_required(parser,"REF" ,"HREF" );
return; return;
} }
#if 0
// replace http my mmshttp to avoid infinite loops // replace http my mmshttp to avoid infinite loops
// disabled since some playlists for e.g. WinAMP use asx as well
// "-user-agent NSPlayer/4.1.0.3856" is a possible workaround
if (strncmp(href, "http://", 7) == 0) { if (strncmp(href, "http://", 7) == 0) {
char *newref = malloc(3 + strlen(href) + 1); char *newref = malloc(3 + strlen(href) + 1);
strcpy(newref, "mms"); strcpy(newref, "mms");
@ -456,6 +459,7 @@ asx_parse_ref(ASX_Parser_t* parser, char** attribs, play_tree_t* pt) {
free(href); free(href);
href = newref; href = newref;
} }
#endif
play_tree_add_file(pt,href); play_tree_add_file(pt,href);