From: J. Dierkse Date: Wed, 14 Jan 2015 20:49:52 +0000 (+0100) Subject: Update timeshift_filemgr.c X-Git-Tag: v4.1~473 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fc57f52aeb18a48195e2bfa7af46bbeb98cd7b34;p=thirdparty%2Ftvheadend.git 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. --- 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) {