From fc57f52aeb18a48195e2bfa7af46bbeb98cd7b34 Mon Sep 17 00:00:00 2001 From: "J. Dierkse" Date: Wed, 14 Jan 2015 21:49:52 +0100 Subject: [PATCH] Update timeshift_filemgr.c It seems that in currently the timeshift_unlimited_period boolean is completely ignored when it comes to taking action on removing files or reporting a full buffer. This small patch should fix that, so that when the timeshift_unlimited_period boolean is set to true, tvheadend no longer evaluates the period of the current timeshift. --- src/timeshift/timeshift_filemgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/timeshift/timeshift_filemgr.c b/src/timeshift/timeshift_filemgr.c index a95953c67..2cf8e00ca 100644 --- a/src/timeshift/timeshift_filemgr.c +++ b/src/timeshift/timeshift_filemgr.c @@ -208,7 +208,8 @@ timeshift_file_t *timeshift_filemgr_get ( timeshift_t *ts, int create ) timeshift_filemgr_close(tsf_tl); /* Check period */ - if (ts->max_time && tsf_hd && tsf_tl) { + if (!timeshift_unlimited_period && + ts->max_time && tsf_hd && tsf_tl) { time_t d = (tsf_tl->time - tsf_hd->time) * TIMESHIFT_FILE_PERIOD; if (d > (ts->max_time+5)) { if (!tsf_hd->refcount) { -- 2.47.3