Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: Fix the time value of of range problem on RPI, fixes #3614
  • Loading branch information
perexg committed Mar 8, 2016
1 parent 95fcfc2 commit 6e51fac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dvr/dvr_db.c
Expand Up @@ -399,8 +399,8 @@ dvr_entry_retention_timer(dvr_entry_t *de)
uint32_t retention = dvr_entry_get_retention_days(de);
int save;

stop = time_t_out_of_range((int64_t)de->de_stop + removal * (int64_t)86400);
if ((removal > 0 || retention == 0) && removal < DVR_RET_SPACE) {
stop = time_t_out_of_range((int64_t)de->de_stop + removal * (int64_t)86400);
if (stop > gclk()) {
dvr_entry_retention_arm(de, dvr_timer_remove_files, stop);
return;
Expand Down

0 comments on commit 6e51fac

Please sign in to comment.