dvd-sector-copy.c: Order `STOP' before `WRITE'.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 16 Feb 2022 10:08:06 +0000 (10:08 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 16 Feb 2022 10:08:06 +0000 (10:08 +0000)
The bad-block parsers already filter out empty regions, so they won't
cause a problem.  And this way we don't reject groups of adjacent bad
blocks, though we don't actually merge them as we probably should.

dvd-sector-copy.c

index 1782ee4..5c09e88 100644 (file)
@@ -129,7 +129,7 @@ struct file {
 DEFVEC(file_v, struct file);
 static file_v filetab = VEC_INIT;
 
-enum { EV_WRITE, EV_BEGIN, EV_END, EV_STOP };
+enum { EV_STOP, EV_BEGIN, EV_END, EV_WRITE };
 struct event {
   unsigned char ev, file;
   uint32_t pos;