forked from len0rd/rockbox
Allow compiling database tool again.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12593 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
23c136c892
commit
c54d52d2d6
1 changed files with 5 additions and 1 deletions
|
|
@ -1945,10 +1945,12 @@ static bool get_spc_metadata(int fd, struct mp3entry* id3)
|
||||||
buf[31] = 0;
|
buf[31] = 0;
|
||||||
p = iso_decode(buf, p, 0, 32);
|
p = iso_decode(buf, p, 0, 32);
|
||||||
|
|
||||||
|
#ifndef __PCTOOL__
|
||||||
if (global_settings.repeat_mode!=REPEAT_ONE && length==0) {
|
if (global_settings.repeat_mode!=REPEAT_ONE && length==0) {
|
||||||
length=3*60*1000; /* 3 minutes */
|
length=3*60*1000; /* 3 minutes */
|
||||||
fade=5*1000; /* 5 seconds */
|
fade=5*1000; /* 5 seconds */
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
id3->length = length+fade;
|
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 */
|
/* We have successfully read the metadata from the file */
|
||||||
|
|
||||||
|
#ifndef __PCTOOL__
|
||||||
if (cuesheet_is_enabled() && look_for_cuesheet_file(trackname))
|
if (cuesheet_is_enabled() && look_for_cuesheet_file(trackname))
|
||||||
{
|
{
|
||||||
track->id3.cuesheet_type = 1;
|
track->id3.cuesheet_type = 1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
lseek(fd, 0, SEEK_SET);
|
lseek(fd, 0, SEEK_SET);
|
||||||
strncpy(track->id3.path, trackname, sizeof(track->id3.path));
|
strncpy(track->id3.path, trackname, sizeof(track->id3.path));
|
||||||
track->taginfo_ready = true;
|
track->taginfo_ready = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue