diff options
author | Oliver Freyermuth <o.freyermuth@googlemail.com> | 2017-10-08 18:07:17 +0200 |
---|---|---|
committer | Oliver Freyermuth <o.freyermuth@googlemail.com> | 2017-10-09 20:06:29 +0200 |
commit | de0c1dd4f5e4a7d3218783c6eb889c4076f780c3 (patch) | |
tree | 61e4cbf55ece2485f086c3c97613a6f6a71e86b3 | |
parent | add0cbea2ab77bc0462a9da9517d6596f216ba83 (diff) | |
download | mpv-de0c1dd4f5e4a7d3218783c6eb889c4076f780c3.tar.bz2 mpv-de0c1dd4f5e4a7d3218783c6eb889c4076f780c3.tar.xz |
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>
-rw-r--r-- | stream/stream_dvb.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 |