]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
linuxdvb: do not call linuxdvb_satconf_power_save for non DVB-S frontents, fixes...
authorJaroslav Kysela <perex@perex.cz>
Sat, 3 Nov 2018 20:58:44 +0000 (21:58 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sat, 3 Nov 2018 20:58:44 +0000 (21:58 +0100)
src/input/mpegts/linuxdvb/linuxdvb_frontend.c

index 113a90735862b746ab8e5b333302b45eea5631fa..82021020f409bc780b7a932fa2d29379e91d3545 100644 (file)
@@ -874,7 +874,7 @@ linuxdvb_frontend_monitor ( void *aux )
 
   /* Close FE */
   if (lfe->lfe_fe_fd > 0 && !lfe->lfe_refcount && lfe->lfe_powersave) {
-    if (linuxdvb_satconf_power_save(lfe->lfe_satconf) > 0) {
+    if (lfe->lfe_satconf && linuxdvb_satconf_power_save(lfe->lfe_satconf) > 0) {
       /* re-arm */
       mtimer_arm_rel(&lfe->lfe_monitor_timer, linuxdvb_frontend_monitor, lfe, sec2mono(1));
       return;