Nomad Juke Box

Peppe <[email protected]> Fri, 28 Oct 2005 04:47:52 +0200
Newsgroups gmane.comp.multimedia.libnjb.user
Message-ID <[email protected]>
I found that my NJB locked very often with gnomad2 during 
file transfers. After some debugging, I found that the 
problem was in the NJB_Get_Track_fd method (procedure.c) 
that went into infinite loop when wasshort was 1 (that 
happened at the end of some files). So I made that when 
wasshort was 1, endF was 1, where endF is a new variable 
that could make the while and:

while (remain != 0 && !abortxfer && endF == 0)
instead of just

while (remain != 0 && !abortxfer)


now my Nomad does't lock anymore and files are flawless.
Don't know if it's a bug or it's needed for some other 
jukeboxes; I must say, however, that my NJB locked also 
with Creative Mediasource, so it maybe a hardware problem. 
BTW, the solution worked....


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information