summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/playlist.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/playlist.c b/tools/playlist.c
index 46dd196b..7e66548d 100644
--- a/tools/playlist.c
+++ b/tools/playlist.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: playlist.c,v 1.4 2007-01-04 08:32:02 phintuka Exp $
+ * $Id: playlist.c,v 1.5 2007-01-04 13:49:10 phintuka Exp $
*
*/
@@ -704,7 +704,12 @@ int cPlaylist::ReadPlaylist(const char *file)
LOGMSG("cPlaylist: recursion too deep, skipped %s", pt);
else {
depth++;
- n += ReadPlaylist(pt);
+ if(*pt == '/' ||
+ (strstr(pt,"://")+1 == strchr(pt,'/') &&
+ strchr(pt,'/') - pt < 8))
+ n += ReadPlaylist(pt);
+ else
+ n += ReadPlaylist(cString::sprintf("%s%s", *Base, pt));
depth--;
}