From 14676ef1326c74eb76101d6ebe86b4f6abe025d4 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 24 Mar 2024 10:09:54 +0100 Subject: [PATCH] Made Xorriso_format_media() ready for long block adresses --- xorriso/write_run.c | 4 ++-- xorriso/xorriso_timestamp.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xorriso/write_run.c b/xorriso/write_run.c index 8968a8bb..99eed8d2 100644 --- a/xorriso/write_run.c +++ b/xorriso/write_run.c @@ -1999,7 +1999,7 @@ int Xorriso_format_media(struct XorrisO *xorriso, off_t in_size, int flag) unsigned dummy; struct burn_drive_info *dinfo; struct burn_drive *drive; - struct burn_progress p; + struct burn_progress_v2 p; double percent = 1.0; int current_profile; char current_profile_name[80], progress_text[40]; @@ -2122,7 +2122,7 @@ int Xorriso_format_media(struct XorrisO *xorriso, off_t in_size, 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; diff --git a/xorriso/xorriso_timestamp.h b/xorriso/xorriso_timestamp.h index 7a63b778..035b9223 100644 --- a/xorriso/xorriso_timestamp.h +++ b/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2024.03.24.084501" +#define Xorriso_timestamP "2024.03.24.085148"