Re-enabled -force with write modes which seem unavailable

This commit is contained in:
2007-03-03 14:11:52 +00:00
parent e955d50198
commit b6c7fd7478
6 changed files with 36 additions and 4 deletions

View File

@@ -37,6 +37,7 @@ struct burn_write_opts *burn_write_opts_new(struct burn_drive *drive)
opts->obs_pad = 0;
opts->start_byte = -1;
opts->fill_up_media = 0;
opts->force_is_set = 0;
opts->has_mediacatalog = 0;
opts->format = BURN_CDROM;
opts->multi = 0;
@@ -288,7 +289,7 @@ try_tao:;
strcat(reasons, "multi track capability lacking, ");
if (demands.exotic_track)
strcat(reasons, "non-audio, non-data track, ");
if (d->current_is_cd_profile)
if (d->current_is_cd_profile && !opts->force_is_set)
if ((d->block_types[BURN_WRITE_TAO] & demands.block_types) !=
demands.block_types)
strcat(reasons, "drive dislikes block type, ");
@@ -350,6 +351,13 @@ void burn_write_opts_set_fillup(struct burn_write_opts *opts,int fill_up_media)
}
/* ts A70303: API */
void burn_write_opts_set_force(struct burn_write_opts *opts, int use_force)
{
opts->force_is_set = !!use_force;
}
void burn_read_opts_set_raw(struct burn_read_opts *opts, int raw)
{
opts->raw = raw;