Browse Source

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

tags/ZeroThreeZero
Thomas Schmitt 12 years ago
parent
commit
88dab185c4
2 changed files with 8 additions and 4 deletions
  1. +1
    -1
      xorriso/xorriso_timestamp.h
  2. +7
    -3
      xorriso/xorrisoburn.c

+ 1
- 1
xorriso/xorriso_timestamp.h View File

@@ -1 +1 @@
#define Xorriso_timestamP "2008.11.29.091030"
#define Xorriso_timestamP "2008.11.29.140837"

+ 7
- 3
xorriso/xorrisoburn.c View File

@@ -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 */


Loading…
Cancel
Save