linuxdvb: safety check for possible bad config
This commit is contained in:
parent
3d6b9a6f73
commit
ac83c6f408
1 changed files with 2 additions and 1 deletions
|
@ -479,7 +479,8 @@ linuxdvb_mux_display_name ( mpegts_mux_t *mm, char *buf, size_t len )
|
|||
uint32_t freq = lm->lm_tuning.dmc_fe_params.frequency;
|
||||
char pol[2] = { 0 };
|
||||
if (ln->ln_type == FE_QPSK) {
|
||||
pol[0] = *(dvb_pol2str(lm->lm_tuning.dmc_fe_polarisation));
|
||||
const char *s = dvb_pol2str(lm->lm_tuning.dmc_fe_polarisation);
|
||||
if (s) pol[0] = *s;
|
||||
freq /= 1000;
|
||||
} else {
|
||||
freq /= 1000;
|
||||
|
|
Loading…
Add table
Reference in a new issue