--- lib/cdda_interface/cddap_interface.c.orig 2006-03-19 00:37:56.000000000 +0600 +++ lib/cdda_interface/cddap_interface.c 2007-06-10 20:40:12.651422544 +0700 @@ -91,30 +91,29 @@ read_blocks (cdrom_drive_t *d, void *p, int retry_count = 0; int err; char *buffer=(char *)p; do { err = cdio_read_audio_sectors( d->p_cdio, buffer, begin, i_sectors); - if ( 0 != err ) { + if ( DRIVER_OP_SUCCESS != err ) { if (!d->error_retry) return -7; if (i_sectors==1) { /* *Could* be I/O or media error. I think. If we're at 30 retries, we better skip this unhappy little sector. */ if (retry_count>MAX_RETRIES-1) { char b[256]; snprintf(b, sizeof(b), "010: Unable to access sector %ld: skipping...\n", (long int) begin); cderror(d, b); return -10; } - break; } if(retry_count>4) if(i_sectors>1) i_sectors=i_sectors*3/4; retry_count++; if (retry_count>MAX_RETRIES) {