Ignore empty lines in M3U playlists

This commit is contained in:
Julien BLACHE 2010-01-23 18:41:54 +01:00
parent cc75bd6eef
commit 4aa207533e

View File

@ -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]))