]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Revert "linuxdvb: handle lfe_ready better - send status all time"
authorJaroslav Kysela <perex@perex.cz>
Sun, 17 Aug 2014 18:24:30 +0000 (20:24 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 17 Aug 2014 18:24:30 +0000 (20:24 +0200)
This reverts commit 91f3b2c5f8ef9f5b383d647d582327ee08bafc89.

src/input/mpegts/linuxdvb/linuxdvb_frontend.c

index da3f5a547dd9d2dce727e98d62800330fa0dda28..abda550d88383d2f92d6d267173a2b4d7c9e4ecd 100644 (file)
@@ -486,7 +486,7 @@ linuxdvb_frontend_monitor ( void *aux )
   }
 
   /* Stop timer */
-  if (!mmi) return;
+  if (!mmi || !lfe->lfe_ready) return;
 
   /* re-arm */
   gtimer_arm(&lfe->lfe_monitor_timer, linuxdvb_frontend_monitor, lfe, 1);
@@ -506,12 +506,6 @@ linuxdvb_frontend_monitor ( void *aux )
   else
     status = SIGNAL_NONE;
 
-  if (!lfe->lfe_ready) {
-    /* send the status message to the higher layers _always_ */
-    status = SIGNAL_NONE;
-    goto status;
-  }
-
   /* Set default period */
   if (fe_status != lfe->lfe_status) {
     tvhdebug("linuxdvb", "%s - status %7s (%s%s%s%s%s%s)", buf,
@@ -767,7 +761,6 @@ linuxdvb_frontend_monitor ( void *aux )
     }
   }
 
-status:
   /* Send message */
   sigstat.status_text  = signal2str(status);
   sigstat.snr          = mmi->mmi_stats.snr;