Defaulting -sao -multi to -tao -multi if -sao -multi is not possible

This commit is contained in:
Thomas Schmitt 2013-05-21 08:18:48 +00:00
parent 0b932e5f7d
commit 1887b0b938
2 changed files with 13 additions and 1 deletions

View File

@ -6648,6 +6648,18 @@ int Cdrskin_activate_write_mode(struct CdrskiN *skin,
strcpy(skin->preskin->write_mode_name,"SAO");
skin->write_type= BURN_WRITE_SAO;
skin->block_type= BURN_BLOCK_SAO;
/* cdrecord tolerates the combination of -sao and -multi. -multi wins. */
burn_write_opts_set_write_type(opts,skin->write_type,skin->block_type);
ret = burn_precheck_write(opts,disc,reasons,0);
if(ret <= 0) {
if(strstr(reasons, "multi session capability lacking") != NULL) {
fprintf(stderr,"cdrskin: WARNING : Cannot do SAO/DAO. Reason: %s\n",
reasons);
fprintf(stderr,"cdrskin: Defaulting to TAO/Incremental.\n");
skin->write_type= BURN_WRITE_TAO;
skin->block_type= BURN_BLOCK_MODE1;
}
}
}
if(!was_still_default)
burn_write_opts_set_write_type(opts,skin->write_type,skin->block_type);

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2013.05.20.124520"
#define Cdrskin_timestamP "2013.05.21.081819"