Rockbox mail archiveSubject: Search problem with tagcache: solved?!
Search problem with tagcache: solved?!
Date: Thu, 11 May 2006 18:54:51 +0200 (CEST)
this is my first post on this mailing list and I would
like to say hello to everybody and thank you for your
Now let's come to a little problem.
I noticed that the "search by title" and "search by
album" were missing some files. I red some code and
noticed the following block in tagcache.c line 521
/* Check for conditions. */
for (i = 0; i < tcs->clause_count; i++)
struct tagfile_entry tfe;
int seek =
==> char str;
memset(str, 0, sizeof str);
int fd =
lseek(fd, seek, SEEK_SET);
read(fd, &tfe, sizeof(struct
==> if (tfe.tag_length >=
logf("Too long tag read!");
read(fd, str, tfe.tag_length);
if (!check_against_clause(seek, str,
The lines highlighted with the ==> are causing the
error because the skipped files have tags longer than
64 chars. Is there any way to raise this number? I
tried to compile and run on my H120 a new version with
char str and, after 2 days, I got no problem.
What do you think of this?
Thank you in advance
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
Received on 2006-05-11