]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Only delete once count is greater than max_count.
authorScott Harris <scott@hooroo.com>
Thu, 24 Dec 2015 10:43:15 +0000 (21:43 +1100)
committerJaroslav Kysela <perex@perex.cz>
Sat, 26 Dec 2015 15:47:20 +0000 (16:47 +0100)
src/dvr/dvr_autorec.c

index 13b8f6d82e9b7c29d8179536a399aea603d6a134..0d75ef0a49490642bd332a4766e2cf5146a21790 100644 (file)
@@ -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)",