]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
hdhomerun: fix tvhdhomerun_frontend_delete() shutdown sequence
authorJaroslav Kysela <perex@perex.cz>
Sun, 10 Apr 2016 18:47:47 +0000 (20:47 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 10 Apr 2016 18:47:47 +0000 (20:47 +0200)
src/input/mpegts/tvhdhomerun/tvhdhomerun_frontend.c

index f8b10afd926be786cee9ffbea865e3e1fb6ab4ed..b9a741f882da0a70cf04525a5a4030cc4ad95b5b 100644 (file)
@@ -650,14 +650,14 @@ tvhdhomerun_frontend_delete ( tvhdhomerun_frontend_t *hfe )
 {
   lock_assert(&global_lock);
 
+  /* Ensure we're stopped */
+  mpegts_input_stop_all((mpegts_input_t*)hfe);
+
   mtimer_disarm(&hfe->hf_monitor_timer);
 
   hdhomerun_device_tuner_lockkey_release(hfe->hf_hdhomerun_tuner);
   hdhomerun_device_destroy(hfe->hf_hdhomerun_tuner);
 
-  /* Ensure we're stopped */
-  mpegts_input_stop_all((mpegts_input_t*)hfe);
-
   /* Remove from adapter */
   TAILQ_REMOVE(&hfe->hf_device->hd_frontends, hfe, hf_link);