Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
set mux satpos from network satpos if set
  • Loading branch information
Glenn-1990 authored and perexg committed Mar 9, 2015
1 parent 50016a1 commit e91074c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/input/mpegts/mpegts_mux_dvb.c
Expand Up @@ -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;
}

0 comments on commit e91074c

Please sign in to comment.