summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/playlist.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 7b1ec59..2e21aef 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -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++;