From effbf60ec3cf186c192bf028cf7e23c3ab6f04bb Mon Sep 17 00:00:00 2001 From: Scott Harris Date: Thu, 24 Dec 2015 21:43:15 +1100 Subject: [PATCH] Only delete once count is greater than max_count. --- src/dvr/dvr_autorec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dvr/dvr_autorec.c b/src/dvr/dvr_autorec.c index 13b8f6d82..0d75ef0a4 100644 --- a/src/dvr/dvr_autorec.c +++ b/src/dvr/dvr_autorec.c @@ -120,7 +120,7 @@ dvr_autorec_completed(dvr_entry_t *de, int error_code) } if (total == 0) total = count; - if (count < max_count) + if (count <= max_count) break; if (de_prev) { tvhinfo("dvr", "autorec %s removing recordings %s (allowed count %u total %u)", -- 2.47.3