Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SAT>IP: Fix the master tuner function - fixes#2174
  • Loading branch information
perexg committed Aug 13, 2014
1 parent 17c23ee commit 261536c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/input/mpegts/satip/satip_satconf.c
Expand Up @@ -48,7 +48,20 @@ int
satip_satconf_get_position
( satip_frontend_t *lfe, mpegts_mux_t *mm )
{
satip_satconf_t *sfc = satip_satconf_find_ele(lfe, mm);
satip_satconf_t *sfc;
satip_frontend_t *lfe2;
if (lfe->sf_master) {
TAILQ_FOREACH(lfe2, &lfe->sf_device->sd_frontends, sf_link)
if (lfe2->sf_number != lfe->sf_number &&
lfe2->sf_number == lfe->sf_master &&
lfe2->sf_master == 0) {
lfe = lfe2;
goto found;
}
return 0;
}
found:
sfc = satip_satconf_find_ele(lfe, mm);
return sfc && sfc->sfc_enabled ? sfc->sfc_position : 0;
}

Expand Down

0 comments on commit 261536c

Please sign in to comment.