Reject muxes that fail to tune (almost always out of range due to bad autodiscovery) and ensure this is also locked in initial scan stats.
This commit is contained in:
parent
d059d808bb
commit
5084ca63fd
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue