Commit 88dab185 authored by Thomas Schmitt's avatar Thomas Schmitt

Bug fix: -format as_needed did not recognize unformatted BD-RE

parent c09fd5b1
#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, &current_profile, current_profile_name);
ret= burn_disc_get_formats(drive, &status, &size, &dummy, &num_formats);
if(ret>0 && status==BURN_FORMAT_IS_FORMATTED)
is_formatted= 1;
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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment