Mercurial > mplayer.hg
comparison asxparser.c @ 25928:bf21649e15c9
Disable http->mmshttp rewriting hack introduced in r25168,
unfortunately WMP is not the only one using asx.
Fixes http://www.fresh80s.de/listen.wax
author | reimar |
---|---|
date | Fri, 08 Feb 2008 18:28:12 +0000 |
parents | 6b1f99f9b2f6 |
children | 0f1b5b68af32 |
comparison
equal
deleted
inserted
replaced
25927:f4c83afa0683 | 25928:bf21649e15c9 |
---|---|
446 href = asx_get_attrib("HREF",attribs); | 446 href = asx_get_attrib("HREF",attribs); |
447 if(href == NULL) { | 447 if(href == NULL) { |
448 asx_warning_attrib_required(parser,"REF" ,"HREF" ); | 448 asx_warning_attrib_required(parser,"REF" ,"HREF" ); |
449 return; | 449 return; |
450 } | 450 } |
451 #if 0 | |
451 // replace http my mmshttp to avoid infinite loops | 452 // replace http my mmshttp to avoid infinite loops |
453 // disabled since some playlists for e.g. WinAMP use asx as well | |
454 // "-user-agent NSPlayer/4.1.0.3856" is a possible workaround | |
452 if (strncmp(href, "http://", 7) == 0) { | 455 if (strncmp(href, "http://", 7) == 0) { |
453 char *newref = malloc(3 + strlen(href) + 1); | 456 char *newref = malloc(3 + strlen(href) + 1); |
454 strcpy(newref, "mms"); | 457 strcpy(newref, "mms"); |
455 strcpy(newref + 3, href); | 458 strcpy(newref + 3, href); |
456 free(href); | 459 free(href); |
457 href = newref; | 460 href = newref; |
458 } | 461 } |
462 #endif | |
459 | 463 |
460 play_tree_add_file(pt,href); | 464 play_tree_add_file(pt,href); |
461 | 465 |
462 mp_msg(MSGT_PLAYTREE,MSGL_V,"Adding file %s to element entry\n",href); | 466 mp_msg(MSGT_PLAYTREE,MSGL_V,"Adding file %s to element entry\n",href); |
463 | 467 |