After formatting DVD-RW write 128 MB and close track to end Intermediate State
This commit is contained in:
parent
9038d9df63
commit
ec38a4f967
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2008.05.04.133525"
|
||||
#define Xorriso_timestamP "2008.05.05.210317"
|
||||
|
@ -2607,6 +2607,7 @@ int Xorriso_format_media(struct XorrisO *xorriso, int flag)
|
||||
struct burn_drive *drive;
|
||||
int current_profile;
|
||||
char current_profile_name[80];
|
||||
off_t size= 0;
|
||||
|
||||
ret= Xorriso_get_drive_handles(xorriso, &dinfo, &drive,
|
||||
"on attempt to -format", 2);
|
||||
@ -2614,9 +2615,10 @@ int Xorriso_format_media(struct XorrisO *xorriso, int flag)
|
||||
return(0);
|
||||
|
||||
burn_disc_get_profile(drive, ¤t_profile, current_profile_name);
|
||||
if(current_profile == 0x14) {
|
||||
; /* ok DVD-RW sequential */
|
||||
} else if(current_profile == 0x1a) {
|
||||
if(current_profile == 0x14) { /* DVD-RW sequential */
|
||||
size= 128*1024*1024;
|
||||
mode_flag= 1;
|
||||
} else if(current_profile == 0x1a) { /* DVD+RW */
|
||||
mode_flag= 2;
|
||||
} else {
|
||||
sprintf(xorriso->info_text,
|
||||
@ -2635,7 +2637,7 @@ int Xorriso_format_media(struct XorrisO *xorriso, int flag)
|
||||
}
|
||||
sprintf(xorriso->info_text, "Beginning to format media.\n");
|
||||
Xorriso_info(xorriso, 0);
|
||||
burn_disc_format(drive, (off_t) 0, mode_flag);
|
||||
burn_disc_format(drive, size, mode_flag);
|
||||
|
||||
ret= Xorriso_pacifier_loop(xorriso, drive, 0);
|
||||
if(ret<=0)
|
||||
|
Loading…
Reference in New Issue
Block a user