[MPlayer-dev-eng] [PATCH] adds support for .wpl, closes #362
Reynaldo H. Verdejo Pinochet
reynaldo at opendot.cl
Fri Oct 28 07:26:04 CEST 2005
Trivial one, adds support for .wpl playlist files, seems just
to be an smil variation as Roberto spoted on bugzilla.
some samples:
http://www.godsdirectcontact.eu.com/eng/multimedia/videos/HUN/LAN/1999hun01.wpl
http://www.kbon.com/KBON%20Video.wpl
will commit if no one complains.
Best regards
Reynaldo
-------------- next part --------------
Index: playtreeparser.c
===================================================================
RCS file: /cvsroot/mplayer/main/playtreeparser.c,v
retrieving revision 1.31
diff -a -u -r1.31 playtreeparser.c
--- playtreeparser.c 10 Sep 2004 20:53:22 -0000 1.31
+++ playtreeparser.c 28 Oct 2005 03:33:52 -0000
@@ -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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20051028/610244f1/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list