diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-09-12 07:51:49 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-09-12 07:51:49 +0000 |
commit | 0be1d266748d5d392ee946ffcb53a6344a72497d (patch) | |
tree | 4fc665ed77c6622e2f7397f9003b670ac8293459 | |
parent | 8a1187e80aa7decee89339b6ebae686faf0646b3 (diff) | |
download | rockbox-0be1d266748d5d392ee946ffcb53a6344a72497d.tar.gz rockbox-0be1d266748d5d392ee946ffcb53a6344a72497d.zip |
Only handle # comments in file based playlists
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2264 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/playlist.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 68cf3b9e3d..8121b3b85a 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -336,11 +336,12 @@ void add_indices_to_playlist(void) | |||
336 | { | 336 | { |
337 | store_index = 1; | 337 | store_index = 1; |
338 | } | 338 | } |
339 | else if((*p == '#') && store_index) | 339 | else if(!playlist.in_ram && (*p == '#') && store_index) |
340 | { | 340 | { |
341 | /* If the first character on a new line is a hash | 341 | /* If the first character on a new line is a hash |
342 | sign, we treat it as a comment. So called winamp | 342 | sign, we treat it as a comment. So called winamp |
343 | style playlist. */ | 343 | style playlist. |
344 | This applies only to playlist files, of course */ | ||
344 | store_index = 0; | 345 | store_index = 0; |
345 | } | 346 | } |
346 | else if(store_index) | 347 | else if(store_index) |