Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SAT>IP server: --disable-iptv fixes
  • Loading branch information
perexg committed Feb 1, 2016
1 parent ba85cfe commit eccb003
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/satip/rtsp.c
Expand Up @@ -516,6 +516,7 @@ rtsp_start
}
}
}
#if ENABLE_IPTV
if (idnode_is_instance(&mn->mn_id, &iptv_network_class)) {
LIST_FOREACH(mux, &mn->mn_muxes, mm_network_link)
if (deltaU32(rs->dmc.dmc_fe_freq, ((iptv_mux_t *)mux)->mm_iptv_satip_dvbt_freq) < 2000)
Expand All @@ -526,6 +527,7 @@ rtsp_start
break;
}
}
#endif
}
if (mux == NULL && mn2 &&
(rtsp_muxcnf == MUXCNF_AUTO || rtsp_muxcnf == MUXCNF_KEEP)) {
Expand Down
4 changes: 3 additions & 1 deletion src/satip/server.c
Expand Up @@ -112,7 +112,6 @@ satip_server_http_xml(http_connection_t *hc)
char *devicelist = NULL;
htsbuf_queue_t q;
mpegts_network_t *mn;
mpegts_mux_t *mm;
int dvbt = 0, dvbs = 0, dvbc = 0, atsc = 0;
int srcs = 0, delim = 0, tuners = 0, i;
struct xml_type_xtab *p;
Expand Down Expand Up @@ -147,13 +146,16 @@ satip_server_http_xml(http_connection_t *hc)
dvbc++;
else if (idnode_is_instance(&mn->mn_id, &dvb_network_atsc_t_class))
atsc++;
#if ENABLE_IPTV
else if (idnode_is_instance(&mn->mn_id, &iptv_network_class)) {
mpegts_mux_t *mm;
LIST_FOREACH(mm, &mn->mn_muxes, mm_network_link)
if (((iptv_mux_t *)mm)->mm_iptv_satip_dvbt_freq) {
dvbt++;
break;
}
}
#endif
}
for (p = xtab; p->id; p++) {
i = *p->cptr;
Expand Down

0 comments on commit eccb003

Please sign in to comment.