pcam - 2006-09-05

Logged In: YES
user_id=667126

I think that

in cd_control.c linee 122

if( ( fd = open( cd_device, O_RDONLY | O_NONBLOCK) ) < 0 )
{
#ifdef DEBUG3
g_print( "device = %s\n", cd_device);
#endif

perror("CDROM device" );
return -1;
}

/* Read the cdrom's header information */
if( ioctl( fd, CDROMREADTOCHDR, &cdinfo->tochdr ) <
CDS_DISC_OK )
{
perror("cdrom_init(CDROMREADTOCHDR-2)" );
return -1;
}

could just fix it.

I have no machine to test/debug/verify.
Someone willing to do it?