set mux satpos from network satpos if set

This commit is contained in:
Glenn-1990 2015-03-03 15:17:00 +01:00 committed by Jaroslav Kysela
parent 50016a15f2
commit e91074c812

View file

@ -793,9 +793,15 @@ dvb_mux_create0
htsmsg_destroy(c);
}
/* Update the satellite position for the network settings */
if (ln->mn_satpos == INT_MAX && lm->lm_tuning.u.dmc_fe_qpsk.orbital_pos != INT_MAX)
ln->mn_satpos = lm->lm_tuning.u.dmc_fe_qpsk.orbital_pos;
if (ln->mn_satpos == INT_MAX) {
/* Update the satellite position for the network settings */
if (lm->lm_tuning.u.dmc_fe_qpsk.orbital_pos != INT_MAX)
ln->mn_satpos = lm->lm_tuning.u.dmc_fe_qpsk.orbital_pos;
}
else {
/* Update the satellite position for the mux setting */
lm->lm_tuning.u.dmc_fe_qpsk.orbital_pos = ln->mn_satpos;
}
return lm;
}