Re: Bug, and a suggestion

Erik <[email protected]>
Newsgroups gmane.comp.audio.cd-paranoia.general
Message-ID <[email protected]>
Okay, after extensive debugging, the problem lies not where I thought it was.
It is a combination of program and library. In particular, around line 1100, 
main.c uses "batch_track=cdda_sector_gettrack(d,cursor)" and assumes that it 
will give a sane answer. It does not in all cases (at least, not with some of 
the CDs I have). By adding a sanity check, such as:
    batch_track_temp=cdda_sector_gettrack(d,cursor);
    if (batch_track_temp<batch_track) break; //Track numbers should only increase!

seems to fix my/the problem. In my case, it would return a zero and program 
would then try to read a non-existant track 0 and infinite loop.
With the fix, the program properly aborts the track and moves on to the next one...

  -Erik

--- >8 ----
List archives:  http://www.xiph.org/archives/
Paranoia homepage: http://www.xiph.org/paranoia/
To unsubscribe from this list, send a message to '[email protected]'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.