From 4aa207533ead613005330b4a747ed50b111a32b6 Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Sat, 23 Jan 2010 18:41:54 +0100 Subject: [PATCH] Ignore empty lines in M3U playlists --- src/filescanner_m3u.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filescanner_m3u.c b/src/filescanner_m3u.c index 3c9e8b8a..085f4370 100644 --- a/src/filescanner_m3u.c +++ b/src/filescanner_m3u.c @@ -156,7 +156,7 @@ scan_m3u_playlist(char *file) continue; } - if ((buf[0] == ';') || (buf[0] == '#')) + if ((buf[0] == ';') || (buf[0] == '#') || (buf[0] == '\n')) continue; while (isspace(buf[len - 1]))