1
0
Fork 0
forked from len0rd/rockbox

the playlist loader now ignores lines that start with # as they are meant

to be "comments" and other secret magic stuff added by winamp etc


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1016 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2002-06-15 14:31:01 +00:00
parent 6828b8791a
commit 4f58f6197d

View file

@ -146,8 +146,16 @@ void add_indices_to_playlist( playlist_info_t *playlist )
{
store_index = 1;
}
else if((*p == '#') && store_index)
{
/* If the first character on a new line is a hash
sign, we treat it as a comment. So called winamp
style playlist. */
store_index = 0;
}
else if(store_index)
{
/* Store a new entry */
playlist->indices[ playlist->amount ] = i+count;
playlist->amount++;