summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-09-19 08:16:56 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-09-19 08:16:56 +0000
commit37c1192753038816e77dc59b04e5c068d4bf78e8 (patch)
treeafa67a625acbf047bbba651d26557d7dfb4308aa /apps
parentf03141477ae61da9690b134a4395bd45abbaad5f (diff)
downloadrockbox-37c1192753038816e77dc59b04e5c068d4bf78e8.tar.gz
rockbox-37c1192753038816e77dc59b04e5c068d4bf78e8.tar.bz2
rockbox-37c1192753038816e77dc59b04e5c068d4bf78e8.zip
ASAP parse_sap_header() : remove write only variables
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28111 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/metadata/asap.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/apps/metadata/asap.c b/apps/metadata/asap.c
index ea9b201bff..61f651b995 100644
--- a/apps/metadata/asap.c
+++ b/apps/metadata/asap.c
@@ -137,11 +137,8 @@ static bool parse_sap_header(int fd, struct mp3entry* id3, int file_len)
int defSong = 0;
int numChannels = 1;
int durations[MAX_SONGS];
- int loops[MAX_SONGS];
- for (i = 0; i < MAX_SONGS; i++) {
+ for (i = 0; i < MAX_SONGS; i++)
durations[i] = -1;
- loops[i] = 0;
- }
/* use id3v2 buffer for our strings */
char* buffer = id3->id3v2buf;
@@ -225,10 +222,7 @@ static bool parse_sap_header(int fd, struct mp3entry* id3, int file_len)
int durationTemp = ASAP_ParseDuration(p);
if (durationTemp < 0 || duration_index >= MAX_SONGS)
return false;
- durations[duration_index] = durationTemp;
- if (strstr(p, "LOOP") != NULL)
- loops[duration_index] = 1;
- duration_index++;
+ durations[duration_index++] = durationTemp;
}
}