From c54d52d2d610f65b9989cc871e85badde35dfb31 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Sun, 4 Mar 2007 16:47:33 +0000 Subject: Allow compiling database tool again. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12593 a1c6a512-1295-4272-9138-f99709370657 --- apps/metadata.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/metadata.c b/apps/metadata.c index 10c8877eb4..8fdd776323 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; -- cgit v1.2.3