[MPlayer-cvslog] CVS: main playtreeparser.c,1.31,1.32

Reynaldo H. Verdejo CVS syncmail at mplayerhq.hu
Sat Oct 29 00:12:22 CEST 2005


CVS change done by Reynaldo H. Verdejo CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv22965

Modified Files:
	playtreeparser.c 
Log Message:
preliminary support for wpl playlists, closes #362

Index: playtreeparser.c
===================================================================
RCS file: /cvsroot/mplayer/main/playtreeparser.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- playtreeparser.c	10 Sep 2004 20:53:22 -0000	1.31
+++ playtreeparser.c	28 Oct 2005 22:12:20 -0000	1.32
@@ -436,7 +436,7 @@
     strstrip(line);
     if(line[0] == '\0') // Ignore empties
       continue;
-    if (strncasecmp(line,"<smil",5)==0)
+    if (strncasecmp(line,"<smil",5)==0 || strncasecmp(line,"<?wpl",5)==0)
       break; // smil header found
     else
       return NULL; //line not smil exit
@@ -452,7 +452,7 @@
     if (line[0]=='\0')
       continue;
     if (!entrymode) { // all entries filled so far 
-      if (strncasecmp(line,"<video",6)==0  || strncasecmp(line,"<audio",6)==0) {
+      if (strncasecmp(line,"<video",6)==0  || strncasecmp(line,"<audio",6)==0 || strncasecmp(line,"<media",6)) {
         pos=strstr(line,"src=");   // Is source present on this line
         if (pos !=NULL) {
           s_start=pos+5;




More information about the MPlayer-cvslog mailing list