Allowed blanking of DVD-RW which offer no Incremental Streaming

This commit is contained in:
Thomas Schmitt 2007-02-01 19:15:06 +00:00
parent f3a08f6812
commit c02dbe4eca
3 changed files with 20 additions and 17 deletions

View File

@ -3953,9 +3953,11 @@ int Cdrskin_blank(struct CdrskiN *skin, int flag)
#ifdef Cdrskin_libburn_has_pretend_fulL #ifdef Cdrskin_libburn_has_pretend_fulL
if(s==BURN_DISC_UNSUITABLE) { if(s==BURN_DISC_UNSUITABLE) {
if(skin->force_is_set) { if(skin->force_is_set ||
profile_number == 0x14 || profile_number == 0x13) {/* allow any DVD-RW */
fprintf(stderr, fprintf(stderr,
"cdrskin: NOTE : -force blank=... : Treating unsuitable media as burn_disc_full\n"); "cdrskin: NOTE : %s blank=... : Treating unsuitable media as burn_disc_full\n",
(skin->force_is_set?"-force ":"DVD-RW "));
ret= burn_disc_pretend_full(drive); ret= burn_disc_pretend_full(drive);
s= burn_disc_get_status(drive); s= burn_disc_get_status(drive);
} else } else

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2007.02.01.163511" #define Cdrskin_timestamP "2007.02.01.191638"

View File

@ -848,20 +848,6 @@ void mmc_read_disc_info(struct burn_drive *d)
return; return;
mmc_get_configuration(d); mmc_get_configuration(d);
if ((d->current_profile != 0 || d->status != BURN_DISC_UNREADY)
&& ! d->current_is_supported_profile) {
if (!d->silent_on_scsi_error) {
sprintf(msg,
"Unsuitable media detected. Profile %4.4Xh %s",
d->current_profile, d->current_profile_text);
libdax_msgs_submit(libdax_messenger, d->global_index,
0x0002011e,
LIBDAX_MSGS_SEV_SORRY, LIBDAX_MSGS_PRIO_HIGH,
msg, 0,0);
}
d->status = BURN_DISC_UNSUITABLE;
return;
}
mmc_function_spy("mmc_read_disc_info"); mmc_function_spy("mmc_read_disc_info");
memcpy(c.opcode, MMC_GET_DISC_INFO, sizeof(MMC_GET_DISC_INFO)); memcpy(c.opcode, MMC_GET_DISC_INFO, sizeof(MMC_GET_DISC_INFO));
@ -881,6 +867,21 @@ void mmc_read_disc_info(struct burn_drive *d)
data = c.page->data; data = c.page->data;
d->erasable = !!(data[2] & 16); d->erasable = !!(data[2] & 16);
if ((d->current_profile != 0 || d->status != BURN_DISC_UNREADY)
&& ! d->current_is_supported_profile) {
if (!d->silent_on_scsi_error) {
sprintf(msg,
"Unsuitable media detected. Profile %4.4Xh %s",
d->current_profile, d->current_profile_text);
libdax_msgs_submit(libdax_messenger, d->global_index,
0x0002011e,
LIBDAX_MSGS_SEV_SORRY, LIBDAX_MSGS_PRIO_HIGH,
msg, 0,0);
}
d->status = BURN_DISC_UNSUITABLE;
return;
}
switch (data[2] & 3) { switch (data[2] & 3) {
case 0: case 0:
d->toc_entries = 0; d->toc_entries = 0;