dvd-sector-copy.c (emit): Update progress display after adding file progress.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 8 Apr 2022 17:54:57 +0000 (18:54 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 8 Apr 2022 17:54:57 +0000 (18:54 +0100)
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.

dvd-sector-copy.c

index 16edf5a..4703dc0 100644 (file)
@@ -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;