From: Mark Wooding Date: Wed, 16 Feb 2022 10:08:06 +0000 (+0000) Subject: dvd-sector-copy.c: Order `STOP' before `WRITE'. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/dvdrip/commitdiff_plain/d79ff9c5ea483a1cdf3b96de320dcda0d8041f7c 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. --- 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;