diff options
author | phintuka <phintuka> | 2008-07-14 07:57:24 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2008-07-14 07:57:24 +0000 |
commit | af10099a1b597bc6e65215992a3e1e92a510bee2 (patch) | |
tree | 23219d70fca087873e57562a8a83e86c32abf689 | |
parent | 5094fa84acb7207fea4faf0f4f105ecf1284a0ef (diff) | |
download | xineliboutput-af10099a1b597bc6e65215992a3e1e92a510bee2.tar.gz xineliboutput-af10099a1b597bc6e65215992a3e1e92a510bee2.tar.bz2 |
Do not try to scan special mrls (dvd:/ etc.)
-rw-r--r-- | tools/playlist.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/playlist.c b/tools/playlist.c index 9f4c85c3..1e2d4b80 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.17 2008-04-03 15:11:26 phelin Exp $ + * $Id: playlist.c,v 1.18 2008-07-14 07:57:24 phintuka Exp $ * */ @@ -873,7 +873,8 @@ bool cPlaylist::Read(const char *PlaylistFile, bool Recursive) if(strrchr(m_Name, '.')) *(strrchr(m_Name, '.')) = 0; - } else if(PlaylistFile[strlen(PlaylistFile)-1] == '/') { + } else if(PlaylistFile[ 0] == '/' && + PlaylistFile[strlen(PlaylistFile)-1] == '/') { // Scan folder Result = ScanFolder(PlaylistFile, Recursive) > 0; m_Origin = eImplicit; |