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:
parent
6828b8791a
commit
4f58f6197d
1 changed files with 8 additions and 0 deletions
|
@ -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++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue