if (a + 1 != b)
return -1;
return a;
- } else if (strncmp(s, "RTP/AVP/TCP;interleaved=0-1", 27) == 0) {
+ } else if ((strncmp(s, "RTP/AVP/TCP;interleaved=0-1", 27) == 0) &&
+ !satip_server_conf.satip_notcp_mode) {
return RTSP_TCP_DATA;
}
return -1;
.opts = PO_EXPERT,
.group = 1,
},
+ {
+ .type = PT_BOOL,
+ .id = "satip_notcp_mode",
+ .name = N_("Disable RTP/AVP/TCP support"),
+ .desc = N_("Remove server support for RTP/AVP/TCP transfer mode "
+ "(embedded data in the RTSP session)."),
+ .off = offsetof(struct satip_server_conf, satip_notcp_mode),
+ .opts = PO_EXPERT,
+ .group = 1,
+ },
{
.type = PT_U32,
.id = "satip_iptv_sig_level",