From: Mark Wooding Date: Fri, 8 Apr 2022 17:54:57 +0000 (+0100) Subject: dvd-sector-copy.c (emit): Update progress display after adding file progress. X-Git-Url: https://git.distorted.org.uk/~mdw/dvdrip/commitdiff_plain/8727deae31a4908d36270c6d8881daadf5375905?hp=1315f9be0dcc934802495c49e3341775b8bfa96e dvd-sector-copy.c (emit): Update progress display after adding file progress. This will show the new progress, at the start of the file, immediately, rather than showing an update without the file data just before the first file. --- diff --git a/dvd-sector-copy.c b/dvd-sector-copy.c index 16edf5a..4703dc0 100644 --- a/dvd-sector-copy.c +++ b/dvd-sector-copy.c @@ -842,7 +842,6 @@ static void emit(secaddr start, secaddr end) bail("failed to open %s %u", id_part(file->id) ? "title" : "menu", id_title(file->id)); - progress_update(&progress); break; default: abort(); @@ -854,6 +853,7 @@ static void emit(secaddr start, secaddr end) progress_additem(&progress, &file_progress); } + progress_update(&progress); pos = start; while (pos < end) { want = end - pos; if (want > BUFSECTORS) want = BUFSECTORS;