Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SAT>IP Client: fix the slave tuners (wrong satellite position check)
  • Loading branch information
perexg committed Apr 22, 2015
1 parent a7cb06c commit 1b2e2c8
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/input/mpegts/satip/satip_frontend.c
Expand Up @@ -392,15 +392,21 @@ satip_frontend_get_grace ( mpegts_input_t *mi, mpegts_mux_t *mm )
static int
satip_frontend_match_satcfg ( satip_frontend_t *lfe2, mpegts_mux_t *mm2 )
{
satip_frontend_t *lfe_master;
mpegts_mux_t *mm1;
dvb_mux_conf_t *mc1, *mc2;
int position, high1, high2;

if (lfe2->sf_req == NULL || lfe2->sf_req->sf_mmi == NULL)
return 0;

lfe_master = lfe2;
if (lfe2->sf_master)
lfe_master = satip_frontend_find_by_number(lfe2->sf_device, lfe2->sf_master) ?: lfe2;

mm1 = lfe2->sf_req->sf_mmi->mmi_mux;
position = satip_satconf_get_position(lfe2, mm2);
if (position <= 0 || lfe2->sf_position != position)
if (position <= 0 || lfe_master->sf_position != position)
return 0;
mc1 = &((dvb_mux_t *)mm1)->lm_tuning;
mc2 = &((dvb_mux_t *)mm2)->lm_tuning;
Expand Down Expand Up @@ -1167,11 +1173,8 @@ satip_frontend_input_thread ( void *aux )
lm = (dvb_mux_t *)mmi->mmi_mux;

lfe_master = lfe;
if (lfe->sf_master) {
lfe_master = satip_frontend_find_by_number(lfe->sf_device, lfe->sf_master);
if (lfe_master == NULL)
lfe_master = lfe;
}
if (lfe->sf_master)
lfe_master = satip_frontend_find_by_number(lfe->sf_device, lfe->sf_master) ?: lfe;

i = 0;
if (!rtsp) {
Expand Down

0 comments on commit 1b2e2c8

Please sign in to comment.