Avoid undefined 43h commands (TOC/ATIP) with non-CD

This commit is contained in:
Thomas Schmitt 2006-12-20 14:52:48 +00:00
parent 4bb8cf73b8
commit 3cfa65388d
3 changed files with 12 additions and 5 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2006.12.20.142301"
#define Cdrskin_timestamP "2006.12.20.145222"

View File

@ -191,7 +191,8 @@ int burn_drive_inquire_media(struct burn_drive *d)
#endif /* ! Libburn_grab_release_and_grab_agaiN */
} else {
d->read_toc(d);
if (d->current_profile == -1 || d->current_is_cd_profile)
d->read_toc(d);
}
d->busy = BURN_DRIVE_IDLE;
return 1;
@ -1232,8 +1233,13 @@ int burn_disc_read_atip(struct burn_drive *d)
0, 0);
return -1;
}
d->read_atip(d);
/* >>> some control of success would be nice :) */
if (d->current_profile == -1 || d->current_is_cd_profile) {
d->read_atip(d);
/* >>> some control of success would be nice :) */
} else {
/* mmc5r03c.pdf 6.26.3.6.3 : ATIP is undefined for non-CD */;
return 0;
}
return 1;
}

View File

@ -553,7 +553,8 @@ void mmc_read_disc_info(struct burn_drive *d)
case 1:
d->status = BURN_DISC_APPENDABLE;
case 2:
mmc_read_toc(d);
if (d->current_profile == -1 || d->current_is_cd_profile)
mmc_read_toc(d);
break;
}