[Mplayer-cvslog] CVS: main playtreeparser.c,1.12,1.13

Alban Bedel CVS albeu at mplayerhq.hu
Sun Jul 7 06:08:00 CEST 2002


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv7427

Modified Files:
	playtreeparser.c 
Log Message:
10L don't add a base path to the urls


Index: playtreeparser.c
===================================================================
RCS file: /cvsroot/mplayer/main/playtreeparser.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- playtreeparser.c	7 Jul 2002 03:59:58 -0000	1.12
+++ playtreeparser.c	7 Jul 2002 04:07:57 -0000	1.13
@@ -435,7 +435,7 @@
 
   for(i = 0 ; pt->files[i] != NULL ; i++) {
     fl = strlen(pt->files[i]);
-    if(fl <= 0 || pt->files[i][0] == PATH_SEP)
+    if(fl <= 0 || pt->files[i][0] == PATH_SEP || strstr(pt->files[i],"://"))
       continue;
     pt->files[i] = (char*)realloc(pt->files[i],bl+fl+1);
     memmove(pt->files[i] + bl,pt->files[i],fl+1);




More information about the MPlayer-cvslog mailing list