Made Xorriso_blank_media() ready for long block adresses
This commit is contained in:
parent
c74f175972
commit
fcad0813dc
@ -1867,7 +1867,7 @@ int Xorriso_blank_media(struct XorrisO *xorriso, int flag)
|
||||
struct burn_drive_info *dinfo;
|
||||
struct burn_drive *drive;
|
||||
enum burn_disc_status disc_state;
|
||||
struct burn_progress p;
|
||||
struct burn_progress_v2 p;
|
||||
double percent = 1.0;
|
||||
int current_profile;
|
||||
char current_profile_name[80];
|
||||
@ -1952,7 +1952,7 @@ int Xorriso_blank_media(struct XorrisO *xorriso, int flag)
|
||||
usleep(1000000);
|
||||
if(!using_immed)
|
||||
sprintf(progress_text, "synchronously since");
|
||||
while (burn_drive_get_status(drive, &p) != BURN_DRIVE_IDLE) {
|
||||
while (burn_drive_get_status_v2(drive, &p) != BURN_DRIVE_IDLE) {
|
||||
Xorriso_process_msg_queues(xorriso,0);
|
||||
if(p.sectors>0 && p.sector>=0) /* display 1 to 99 percent */
|
||||
percent = 1.0 + ((double) p.sector+1.0) / ((double) p.sectors) * 98.0;
|
||||
|
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2024.03.24.081207"
|
||||
#define Xorriso_timestamP "2024.03.24.084501"
|
||||
|
Loading…
Reference in New Issue
Block a user