Kept DVD+RW from stopping BG formatting if it was not started at all
This commit is contained in:
@ -255,6 +255,8 @@ void mmc_close(struct burn_drive *d, int session, int track)
|
||||
/* ts A61030 : shifted !!session rather than or-ing plain session */
|
||||
c.opcode[2] = ((!!session)<<1) | !!track;
|
||||
|
||||
fprintf(stderr, "LIBBURN_DEBUG: mmc_close %d\n", c.opcode[2]);
|
||||
|
||||
c.opcode[4] = track >> 8;
|
||||
c.opcode[5] = track & 0xFF;
|
||||
c.page = NULL;
|
||||
@ -1412,7 +1414,7 @@ selected_not_suitable:;
|
||||
if (d->format_descr_type == 2) /* formatted */
|
||||
return 1;
|
||||
if (d->format_descr_type == 3){/*intermediate*/
|
||||
d->dvd_minus_rw_incomplete = 1;
|
||||
d->needs_close_session = 1;
|
||||
return 1;
|
||||
}
|
||||
/* does trying make sense at all ? */
|
||||
@ -1510,7 +1512,7 @@ unsuitable_media:;
|
||||
}
|
||||
return 0;
|
||||
} else if ((!c.error) && (format_type == 0x13 || format_type == 0x15))
|
||||
d->dvd_minus_rw_incomplete = 1;
|
||||
d->needs_close_session = 1;
|
||||
if (return_immediately)
|
||||
return 1;
|
||||
usleep(1000000); /* there seems to be a little race condition */
|
||||
@ -1670,7 +1672,7 @@ int mmc_setup_drive(struct burn_drive *d)
|
||||
d->current_profile_text[0] = 0;
|
||||
d->current_is_cd_profile = 0;
|
||||
d->current_is_supported_profile = 0;
|
||||
d->dvd_minus_rw_incomplete = 0;
|
||||
d->needs_close_session = 0;
|
||||
d->bg_format_status = -1;
|
||||
d->num_format_descr = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user