Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dvr: fix shutdown sequence in main.c and properly unsubscribe in dvr_…
…entry_done()
  • Loading branch information
perexg committed Oct 15, 2016
1 parent 37ef4b8 commit 47af3cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/dvr/dvr_db.c
Expand Up @@ -3738,6 +3738,9 @@ dvr_entry_done(void)
{
dvr_entry_t *de;
lock_assert(&global_lock);
while ((de = LIST_FIRST(&dvrentries)) != NULL)
dvr_entry_destroy(de, 0);
while ((de = LIST_FIRST(&dvrentries)) != NULL) {
if (de->de_sched_state == DVR_RECORDING)
dvr_rec_unsubscribe(de);
dvr_entry_destroy(de, 0);
}
}
2 changes: 1 addition & 1 deletion src/main.c
Expand Up @@ -1314,12 +1314,12 @@ main(int argc, char **argv)
#if ENABLE_MPEGTS
tvhftrace(LS_MAIN, mpegts_done);
#endif
tvhftrace(LS_MAIN, dvr_done);
tvhftrace(LS_MAIN, descrambler_done);
tvhftrace(LS_MAIN, service_mapper_done);
tvhftrace(LS_MAIN, service_done);
tvhftrace(LS_MAIN, channel_done);
tvhftrace(LS_MAIN, bouquet_done);
tvhftrace(LS_MAIN, dvr_done);
tvhftrace(LS_MAIN, subscription_done);
tvhftrace(LS_MAIN, access_done);
tvhftrace(LS_MAIN, epg_done);
Expand Down

0 comments on commit 47af3cd

Please sign in to comment.