From d79ff9c5ea483a1cdf3b96de320dcda0d8041f7c Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Wed, 16 Feb 2022 10:08:06 +0000 Subject: [PATCH] dvd-sector-copy.c: Order `STOP' before `WRITE'. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvd-sector-copy.c b/dvd-sector-copy.c index 1782ee4..5c09e88 100644 --- a/dvd-sector-copy.c +++ b/dvd-sector-copy.c @@ -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; -- 2.11.0