Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: Handle DVR_NOSTATE in cancel functions
  • Loading branch information
perexg committed Sep 17, 2014
1 parent f35f4ce commit 54dd7dd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/dvr/dvr_db.c
Expand Up @@ -1082,10 +1082,8 @@ dvr_entry_cancel(dvr_entry_t *de)
return de;

case DVR_COMPLETED:
dvr_entry_destroy(de, 1);
return NULL;

case DVR_MISSED_TIME:
case DVR_NOSTATE:
dvr_entry_destroy(de, 1);
return NULL;

Expand Down Expand Up @@ -2736,6 +2734,7 @@ dvr_entry_cancel_delete(dvr_entry_t *de)
break;

case DVR_MISSED_TIME:
case DVR_NOSTATE:
dvr_entry_destroy(de, 1);
break;

Expand Down

0 comments on commit 54dd7dd

Please sign in to comment.