summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorOliver Freyermuth <o.freyermuth@googlemail.com>2019-12-28 18:21:37 +0100
committerOliver Freyermuth <o.freyermuth@googlemail.com>2019-12-28 19:16:07 +0100
commit1571276d6439123f669204b2058ad4450e6b3236 (patch)
treeb1329283419797495df647482cb02051060710a5 /stream
parentc4600394d432047095bf09a9faa24f03962096d1 (diff)
downloadmpv-1571276d6439123f669204b2058ad4450e6b3236.tar.bz2
mpv-1571276d6439123f669204b2058ad4450e6b3236.tar.xz
stream_dvb: Remove implicit fallthroughs and consistify debug messages.
The code is more explicit now and less confusing, and debug messages for the channel parsing for the several delivery systems are now more similar.
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_dvb.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/stream/stream_dvb.c b/stream/stream_dvb.c
index c14cce8420..c6edaa03e9 100644
--- a/stream/stream_dvb.c
+++ b/stream/stream_dvb.c
@@ -378,7 +378,13 @@ static dvb_channels_list_t *dvb_get_channels(struct mp_log *log,
}
if (!DELSYS_IS_SET(delsys_mask, delsys))
continue; /* Skip channel. */
- /* PASSTROUTH */
+ mp_verbose(log, "VDR, %s, NUM: %d, NUM_FIELDS: %d, NAME: %s, "
+ "FREQ: %d, SRATE: %d, T2: %s",
+ get_dvb_delsys(delsys),
+ list->NUM_CHANNELS, fields,
+ ptr->name, ptr->freq, ptr->srate,
+ (delsys == SYS_DVBT2) ? "yes" : "no");
+ break;
case SYS_DVBC_ANNEX_A:
case SYS_DVBC_ANNEX_C:
case SYS_ATSC:
@@ -418,7 +424,7 @@ static dvb_channels_list_t *dvb_get_channels(struct mp_log *log,
}
}
- mp_verbose(log, "%s NUM: %d, NUM_FIELDS: %d, NAME: %s, "
+ mp_verbose(log, "VDR, %s, NUM: %d, NUM_FIELDS: %d, NAME: %s, "
"FREQ: %d, SRATE: %d, POL: %c, DISEQC: %d, S2: %s, "
"StreamID: %d, SID: %d",
get_dvb_delsys(delsys),
@@ -1197,14 +1203,16 @@ dvb_state_t *dvb_get_state(stream_t *stream)
case SYS_DVBT:
if (DELSYS_IS_SET(delsys_mask[f], SYS_DVBT2))
continue; /* Add all channels later with T2. */
- /* PASSTOUTH */
+ conf_file_name = "channels.conf.ter";
+ break;
case SYS_DVBT2:
conf_file_name = "channels.conf.ter";
break;
case SYS_DVBS:
if (DELSYS_IS_SET(delsys_mask[f], SYS_DVBS2))
continue; /* Add all channels later with S2. */
- /* PASSTOUTH */
+ conf_file_name = "channels.conf.sat";
+ break;
case SYS_DVBS2:
conf_file_name = "channels.conf.sat";
break;