Re: search music fix
Ed Sweetman <[email protected]>
| Newsgroups | gmane.comp.audio.zinf.devel |
|---|---|
| Message-ID | <[email protected]> |
Ed Sweetman wrote:
> Ed Sweetman wrote:
>
>> Simple fix.
>>
>> Just goto line 865 of /base/src/musiccatalog.cpp and add this to the
>> if statement, !strcmp(path, ".") || !strcmp(path, "..")
>>
>> That will fix the infinite recursion.
>
>
> no it wont, I'm still trying to fix it but it appears that the m ethod
> that the code in question appears in really really wants to search . and
> .., which simply causes an infinite recursion.
Found out why the thing was adding . and .., it's all in the new mdb
code musicdb.cpp. I added this to line 104
length = di->native_file_string().length();
if(di->native_file_string().c_str()[length - 1] != '.')
This causes it to not add . and .., and it seems to scan through all of
my files and generate a database. But zinf continues to say i have no
database. Also, why does zinf have two databases now for the same thing
and two sets of code for the same thing (sometimes three) ? Was the
previous code not redundent and messy enough ? Or is it planned to gut
the old code when the new code has been in zinf for a while, which by
that time nobody remembers what code they needed to gut and where the
new code is just like half of the lines of code in zinf are attributed
to now.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf