diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2007-03-04 16:47:33 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2007-03-04 16:47:33 +0000 |
commit | c54d52d2d610f65b9989cc871e85badde35dfb31 (patch) | |
tree | f2f0c0153399dfa7d73ed93166717575fd87d988 | |
parent | 23c136c892067a2bb44ee2085e0c950f02b28566 (diff) | |
download | rockbox-c54d52d2d610f65b9989cc871e85badde35dfb31.tar.gz rockbox-c54d52d2d610f65b9989cc871e85badde35dfb31.zip |
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.c | 6 |
1 files changed, 5 insertions, 1 deletions
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) | |||
1945 | buf[31] = 0; | 1945 | buf[31] = 0; |
1946 | p = iso_decode(buf, p, 0, 32); | 1946 | p = iso_decode(buf, p, 0, 32); |
1947 | 1947 | ||
1948 | #ifndef __PCTOOL__ | ||
1948 | if (global_settings.repeat_mode!=REPEAT_ONE && length==0) { | 1949 | if (global_settings.repeat_mode!=REPEAT_ONE && length==0) { |
1949 | length=3*60*1000; /* 3 minutes */ | 1950 | length=3*60*1000; /* 3 minutes */ |
1950 | fade=5*1000; /* 5 seconds */ | 1951 | fade=5*1000; /* 5 seconds */ |
1951 | } | 1952 | } |
1953 | #endif | ||
1952 | 1954 | ||
1953 | id3->length = length+fade; | 1955 | id3->length = length+fade; |
1954 | 1956 | ||
@@ -2317,11 +2319,13 @@ bool get_metadata(struct track_info* track, int fd, const char* trackname, | |||
2317 | 2319 | ||
2318 | /* We have successfully read the metadata from the file */ | 2320 | /* We have successfully read the metadata from the file */ |
2319 | 2321 | ||
2322 | #ifndef __PCTOOL__ | ||
2320 | if (cuesheet_is_enabled() && look_for_cuesheet_file(trackname)) | 2323 | if (cuesheet_is_enabled() && look_for_cuesheet_file(trackname)) |
2321 | { | 2324 | { |
2322 | track->id3.cuesheet_type = 1; | 2325 | track->id3.cuesheet_type = 1; |
2323 | } | 2326 | } |
2324 | 2327 | #endif | |
2328 | |||
2325 | lseek(fd, 0, SEEK_SET); | 2329 | lseek(fd, 0, SEEK_SET); |
2326 | strncpy(track->id3.path, trackname, sizeof(track->id3.path)); | 2330 | strncpy(track->id3.path, trackname, sizeof(track->id3.path)); |
2327 | track->taginfo_ready = true; | 2331 | track->taginfo_ready = true; |