summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--demux/demux_playlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demux/demux_playlist.c b/demux/demux_playlist.c
index 0afda57c6a..ff252bb417 100644
--- a/demux/demux_playlist.c
+++ b/demux/demux_playlist.c
@@ -250,7 +250,7 @@ static int parse_dir(struct pl_parser *p)
struct dirent *ep;
while ((ep = readdir(dp))) {
- if (strcmp(ep->d_name, ".") == 0 || strcmp(ep->d_name, "..") == 0)
+ if (ep->d_name[0] == '.')
continue;
MP_TARRAY_APPEND(p, files, num_files, talloc_strdup(p, ep->d_name));
}