[MPlayer-cvslog] r25960 - trunk/asxparser.c

reimar subversion at mplayerhq.hu
Fri Feb 8 19:28:12 CET 2008


Author: reimar
Date: Fri Feb  8 19:28:12 2008
New Revision: 25960

Log:
Disable http->mmshttp rewriting hack introduced in r25168,
unfortunately WMP is not the only one using asx.
Fixes http://www.fresh80s.de/listen.wax


Modified:
   trunk/asxparser.c

Modified: trunk/asxparser.c
==============================================================================
--- trunk/asxparser.c	(original)
+++ trunk/asxparser.c	Fri Feb  8 19:28:12 2008
@@ -448,7 +448,10 @@ asx_parse_ref(ASX_Parser_t* parser, char
     asx_warning_attrib_required(parser,"REF" ,"HREF" );
     return;
   }
+#if 0
   // 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) {
     char *newref = malloc(3 + strlen(href) + 1);
     strcpy(newref, "mms");
@@ -456,6 +459,7 @@ asx_parse_ref(ASX_Parser_t* parser, char
     free(href);
     href = newref;
   }
+#endif
 
   play_tree_add_file(pt,href);
 



More information about the MPlayer-cvslog mailing list