]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Reject muxes that fail to tune (almost always out of range due to bad autodiscovery... release/3.0 103/head 3.0
authorAdam Sutton <dev@adamsutton.me.uk>
Wed, 25 Jul 2012 14:18:46 +0000 (15:18 +0100)
committerAdam Sutton <dev@adamsutton.me.uk>
Mon, 30 Jul 2012 12:34:23 +0000 (13:34 +0100)
src/dvb/dvb_fe.c

index 9e7b78909329a2cf7ee7021cbcba1adf814fcafd..e122b1c3d879d58fb45f84bdb45cc67182739d85 100644 (file)
@@ -496,6 +496,15 @@ dvb_fe_tune(th_dvb_mux_instance_t *tdmi, const char *reason)
     tvhlog(LOG_ERR, "dvb", "\"%s\" tuning to \"%s\""
      " -- Front configuration failed -- %s, frequency: %ld",
      tda->tda_rootpath, buf, strerror(errno), p->frequency);
+
+    /* Remove from initial scan set */
+    if(tdmi->tdmi_table_initial) {
+      tdmi->tdmi_table_initial = 0;
+      tda->tda_initial_num_mux--;
+    }
+
+    /* Mark as bad */
+    tdmi->tdmi_enabled = 0;
     return SM_CODE_TUNING_FAILED;
   }