Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mpegts dvb: fix the DVB-S mux initialization - wrong position value
  • Loading branch information
perexg committed Feb 8, 2015
1 parent 3396fe7 commit a6ac407
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions src/input/mpegts/dvb_support.c
Expand Up @@ -778,6 +778,13 @@ dvb_mux_conf_init ( dvb_mux_conf_t *dmc, dvb_fe_delivery_system_t delsys )
dmc->dmc_fe_inversion = DVB_INVERSION_AUTO;
dmc->dmc_fe_pilot = DVB_PILOT_AUTO;
dmc->dmc_fe_stream_id = DVB_NO_STREAM_ID_FILTER;
switch (dmc->dmc_fe_type) {
case DVB_TYPE_S:
dmc->u.dmc_fe_qpsk.orbital_pos = INT_MAX;
break;
default:
break;
}
}


Expand Down
7 changes: 5 additions & 2 deletions src/input/mpegts/mpegts_mux_dvb.c
Expand Up @@ -452,7 +452,10 @@ dvb_mux_dvbs_class_orbital_get ( void *o )
{
static char buf[16], *s = buf;
dvb_mux_t *lm = o;
dvb_sat_position_to_str(lm->lm_tuning.u.dmc_fe_qpsk.orbital_pos, buf, sizeof(buf));
if (lm->lm_tuning.u.dmc_fe_qpsk.orbital_pos == INT_MAX)
buf[0] = '\0';
else
dvb_sat_position_to_str(lm->lm_tuning.u.dmc_fe_qpsk.orbital_pos, buf, sizeof(buf));
return &s;
}

Expand Down Expand Up @@ -696,7 +699,7 @@ dvb_mux_create0
lm = (dvb_mux_t*)mm;

/* Defaults */
dvb_mux_conf_init(&lm->lm_tuning, DVB_SYS_NONE);
dvb_mux_conf_init(&lm->lm_tuning, ln->ln_type);

/* Parent init and load config */
if (!(mm = mpegts_mux_create0(mm, idc, uuid,
Expand Down

0 comments on commit a6ac407

Please sign in to comment.