Bug fix: -format as_needed did not recognize unformatted BD-RE
This commit is contained in:
parent
21ac13180e
commit
2ed45c9cb1
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2008.11.29.091030"
|
||||
#define Xorriso_timestamP "2008.11.29.140837"
|
||||
|
@ -4552,8 +4552,12 @@ int Xorriso_blank_as_needed(struct XorrisO *xorriso, int flag)
|
||||
burn_disc_get_profile(drive, ¤t_profile, current_profile_name);
|
||||
|
||||
ret= burn_disc_get_formats(drive, &status, &size, &dummy, &num_formats);
|
||||
if(ret>0 && status==BURN_FORMAT_IS_FORMATTED)
|
||||
if(ret>0) {
|
||||
if(status==BURN_FORMAT_IS_FORMATTED)
|
||||
is_formatted= 1;
|
||||
else if(status == BURN_FORMAT_IS_UNFORMATTED)
|
||||
is_formatted= 0;
|
||||
}
|
||||
if(current_profile == 0x12 || current_profile == 0x43) { /* DVD+RAM , BD-RE */
|
||||
if(is_formatted<0) {
|
||||
sprintf(xorriso->info_text,
|
||||
@ -4563,7 +4567,7 @@ int Xorriso_blank_as_needed(struct XorrisO *xorriso, int flag)
|
||||
return(0);
|
||||
}
|
||||
if(!is_formatted) {
|
||||
ret= Xorriso_format_media(xorriso, 0);
|
||||
ret= Xorriso_format_media(xorriso, (current_profile == 0x43));
|
||||
return(ret);
|
||||
}
|
||||
} else if(current_profile == 0x14 && (flag&4)) { /* DVD-RW sequential */
|
||||
|
Loading…
Reference in New Issue
Block a user