Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: add missing timer disarm when retention is set to onremove, fixe…
…s #3405
  • Loading branch information
perexg committed Dec 9, 2015
1 parent c618217 commit 7ef441e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/dvr/dvr_db.c
Expand Up @@ -408,9 +408,11 @@ dvr_entry_retention_timer(dvr_entry_t *de)
}
}

if (retention < DVR_RET_ONREMOVE) {
if (retention < DVR_RET_ONREMOVE) {
stop = de->de_stop + retention * (time_t)86400;
dvr_entry_retention_arm(de, dvr_timer_expire, stop);
} else {
gtimer_disarm(&de->de_timer);
}
}

Expand Down Expand Up @@ -1800,6 +1802,8 @@ static void
dvr_timer_stop_recording(void *aux)
{
dvr_entry_t *de = aux;
if(de->de_sched_state != DVR_RECORDING)
return;
/* EPG thinks that the program is running */
if (de->de_running_start > de->de_running_stop) {
gtimer_arm(&de->de_timer, dvr_timer_stop_recording, de, 10);
Expand Down

0 comments on commit 7ef441e

Please sign in to comment.