From 12ade065b04ab2710a7984b695a8644d713c3988 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sat, 26 Mar 2022 14:13:12 +0000 Subject: [PATCH] dvd-sector-copy.c: Sit for the bad-blocks delay if we get an actual hit. --- dvd-sector-copy.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dvd-sector-copy.c b/dvd-sector-copy.c index fe99587..f1f6d4e 100644 --- a/dvd-sector-copy.c +++ b/dvd-sector-copy.c @@ -323,7 +323,10 @@ static ssize_t read_sectors(secaddr pos, void *buf, secaddr want) #endif if (pos < bad->start) { D( printf("high\n"); ) best = bad; hi = mid; } else if (pos >= bad->end) { D( printf("low\n"); ) lo = mid + 1; } - else { D( printf("match!\n"); ) errno = EIO; return (-1); } + else { + D( printf("match!\n"); ) + errno = EIO; sit(bad_block_delay); return (-1); + } } #ifdef DEBUG if (best) -- 2.11.0