summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2007-03-04 16:47:33 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2007-03-04 16:47:33 +0000
commitc54d52d2d610f65b9989cc871e85badde35dfb31 (patch)
treef2f0c0153399dfa7d73ed93166717575fd87d988
parent23c136c892067a2bb44ee2085e0c950f02b28566 (diff)
downloadrockbox-c54d52d2d610f65b9989cc871e85badde35dfb31.zip
rockbox-c54d52d2d610f65b9989cc871e85badde35dfb31.tar.gz
rockbox-c54d52d2d610f65b9989cc871e85badde35dfb31.tar.bz2
rockbox-c54d52d2d610f65b9989cc871e85badde35dfb31.tar.xz
Allow compiling database tool again.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12593 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/metadata.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/metadata.c b/apps/metadata.c
index 10c8877..8fdd776 100644
--- a/apps/metadata.c
+++ b/apps/metadata.c
@@ -1945,10 +1945,12 @@ static bool get_spc_metadata(int fd, struct mp3entry* id3)
buf[31] = 0;
p = iso_decode(buf, p, 0, 32);
+#ifndef __PCTOOL__
if (global_settings.repeat_mode!=REPEAT_ONE && length==0) {
length=3*60*1000; /* 3 minutes */
fade=5*1000; /* 5 seconds */
}
+#endif
id3->length = length+fade;
@@ -2317,11 +2319,13 @@ bool get_metadata(struct track_info* track, int fd, const char* trackname,
/* We have successfully read the metadata from the file */
+#ifndef __PCTOOL__
if (cuesheet_is_enabled() && look_for_cuesheet_file(trackname))
{
track->id3.cuesheet_type = 1;
}
-
+#endif
+
lseek(fd, 0, SEEK_SET);
strncpy(track->id3.path, trackname, sizeof(track->id3.path));
track->taginfo_ready = true;