Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: another re-record fix
  • Loading branch information
perexg committed Oct 21, 2015
1 parent 6e95d6c commit 8b0e8f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/dvr/dvr_db.c
Expand Up @@ -1059,10 +1059,12 @@ dvr_entry_destroy(dvr_entry_t *de, int delconf)
LIST_REMOVE(de, de_global_link);
de->de_channel = NULL;

if (de->de_parent)
de->de_parent->de_slave = NULL;
if (de->de_slave)
de->de_slave->de_parent = NULL;
if (de->de_parent) {
de->de_parent->de_slave = NULL;
gtimer_arm(&de->de_parent->de_timer, dvr_entry_set_timer_cb, de->de_parent, 0);
}

dvr_entry_dec_ref(de);
}
Expand Down

0 comments on commit 8b0e8f4

Please sign in to comment.