From de0c1dd4f5e4a7d3218783c6eb889c4076f780c3 Mon Sep 17 00:00:00 2001 From: Oliver Freyermuth Date: Sun, 8 Oct 2017 18:07:17 +0200 Subject: 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 --- stream/stream_dvb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stream/stream_dvb.c b/stream/stream_dvb.c index 3f0a10db7b..7514e42fc0 100644 --- a/stream/stream_dvb.c +++ b/stream/stream_dvb.c @@ -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 -- cgit v1.2.3