dvb: Skip channel if ATSC device does not support cable / terr.

This matches what is done for the other multi-delivery-system
cards.

Signed-off-by: Oliver Freyermuth <o.freyermuth@googlemail.com>
This commit is contained in:
Oliver Freyermuth 2017-10-08 18:07:17 +02:00
parent add0cbea2a
commit de0c1dd4f5
1 changed files with 3 additions and 1 deletions

View File

@ -603,7 +603,9 @@ static dvb_channels_list_t *dvb_get_channels(struct mp_log *log,
} else {
delsys = SYS_DVBC_ANNEX_B;
}
mp_verbose(log, "Defined delivery system for ATSC as %s from modulation.\n",
if (!DELSYS_IS_SET(delsys_mask, delsys))
continue; /* Skip channel. */
mp_verbose(log, "Switched to delivery system for ATSC: %s (guessed from modulation).\n",
get_dvb_delsys(delsys));
}
#endif