dvb network scan: don't subscribe to already active mux, move Idle Scan to hidden (grid), fixes #2568

This commit is contained in:
Jaroslav Kysela 2014-12-28 16:16:41 +01:00
parent 75fb7a929d
commit cde79eb75f
2 changed files with 4 additions and 1 deletions

View file

@ -172,7 +172,7 @@ const idclass_t mpegts_network_class =
.off = offsetof(mpegts_network_t, mn_idlescan),
.def.i = 0,
.notify = mpegts_network_class_idlescan_notify,
.opts = PO_ADVANCED,
.opts = PO_ADVANCED | PO_HIDDEN,
},
{
.type = PT_BOOL,

View file

@ -49,6 +49,9 @@ mpegts_network_scan_timer_cb ( void *p )
nxt = TAILQ_NEXT(mm, mm_scan_link);
assert(mm->mm_scan_state == MM_SCAN_STATE_PEND);
/* Don't try to subscribe already tuned muxes */
if (mm->mm_active) continue;
/* Attempt to tune */
r = mpegts_mux_subscribe(mm, "scan", mm->mm_scan_weight, mm->mm_scan_flags);