Removed assumption BURN_DRIVE_IDLE==0

This commit is contained in:
Thomas Schmitt 2006-10-18 17:48:04 +00:00
parent a6f394f626
commit 401329f710
2 changed files with 7 additions and 7 deletions

View File

@ -3325,7 +3325,7 @@ int Cdrskin_atip(struct CdrskiN *skin, int flag)
if(ret<=0)
return(ret);
drive= skin->drives[skin->driveno].drive;
while(burn_drive_get_status(drive,NULL))
while(burn_drive_get_status(drive,NULL) != BURN_DRIVE_IDLE)
usleep(100002);
while ((s= burn_disc_get_status(drive)) == BURN_DISC_UNREADY)
usleep(100002);
@ -3472,7 +3472,7 @@ int Cdrskin_blank(struct CdrskiN *skin, int flag)
return(ret);
drive= skin->drives[skin->driveno].drive;
while(burn_drive_get_status(drive,NULL))
while(burn_drive_get_status(drive,NULL) != BURN_DRIVE_IDLE)
usleep(100002);
while ((s = burn_disc_get_status(drive)) == BURN_DISC_UNREADY)
usleep(100002);
@ -3850,7 +3850,7 @@ int Cdrskin_burn(struct CdrskiN *skin, int flag)
return(ret);
drive= skin->drives[skin->driveno].drive;
while (burn_drive_get_status(drive, NULL))
while(burn_drive_get_status(drive, NULL) != BURN_DRIVE_IDLE)
usleep(100002); /* >>> ??? add a timeout ? */
while((s= burn_disc_get_status(drive)) == BURN_DISC_UNREADY)

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2006.10.17.164140"
#define Cdrskin_timestamP "2006.10.18.174334"