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;
|
struct burn_drive *drive;
|
||||||
int current_profile;
|
int current_profile;
|
||||||
char current_profile_name[80];
|
char current_profile_name[80];
|
||||||
|
off_t size= 0;
|
||||||
|
|
||||||
ret= Xorriso_get_drive_handles(xorriso, &dinfo, &drive,
|
ret= Xorriso_get_drive_handles(xorriso, &dinfo, &drive,
|
||||||
"on attempt to -format", 2);
|
"on attempt to -format", 2);
|
||||||
@ -2614,9 +2615,10 @@ int Xorriso_format_media(struct XorrisO *xorriso, int flag)
|
|||||||
return(0);
|
return(0);
|
||||||
|
|
||||||
burn_disc_get_profile(drive, ¤t_profile, current_profile_name);
|
burn_disc_get_profile(drive, ¤t_profile, current_profile_name);
|
||||||
if(current_profile == 0x14) {
|
if(current_profile == 0x14) { /* DVD-RW sequential */
|
||||||
; /* ok DVD-RW sequential */
|
size= 128*1024*1024;
|
||||||
} else if(current_profile == 0x1a) {
|
mode_flag= 1;
|
||||||
|
} else if(current_profile == 0x1a) { /* DVD+RW */
|
||||||
mode_flag= 2;
|
mode_flag= 2;
|
||||||
} else {
|
} else {
|
||||||
sprintf(xorriso->info_text,
|
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");
|
sprintf(xorriso->info_text, "Beginning to format media.\n");
|
||||||
Xorriso_info(xorriso, 0);
|
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);
|
ret= Xorriso_pacifier_loop(xorriso, drive, 0);
|
||||||
if(ret<=0)
|
if(ret<=0)
|
||||||
|
Loading…
Reference in New Issue
Block a user