Project

General

Profile

Feature #4505 » SATIP-Disable-RTP_over_TCP-at-tuner-level.diff

Patch - Mono Polimorph, 2017-08-03 10:01

View differences:

src/input/mpegts/satip/satip_frontend.c
154 154
      .opts     = PO_RDONLY | PO_NOSAVE,
155 155
      .off      = offsetof(satip_frontend_t, sf_number),
156 156
    },
157
     {
158
      .type     = PT_BOOL,
159
      .id       = "no_tcp_mode",
160
      .name     = N_("Disable RTP/AVP/TCP transport"),
161
      .desc     = N_("Not use the RTP/AVP/TCP transfer mode "
162
                     "for this tuner even if the server supports it "
163
                     "and the client is configured to do so."),
164
      .off      = offsetof(satip_frontend_t, sf_no_tcp_mode),
165
      .opts     = PO_EXPERT,
166
    },
157 167
    {
158 168
      .type     = PT_INT,
159 169
      .id       = "udp_rtp_port",
......
1569 1579
  seq         = -1;
1570 1580
  lfe->sf_seq = -1;
1571 1581
  play2       = 1;
1572
  rtsp_flags  = lfe->sf_device->sd_tcp_mode ? SATIP_SETUP_TCP : 0;
1582
  rtsp_flags  = lfe->sf_device->sd_tcp_mode ? lfe->sf_no_tcp_mode ? 0 : SATIP_SETUP_TCP : 0;
1573 1583

  
1574 1584
  if ((rtsp_flags & SATIP_SETUP_TCP) == 0) {
1575 1585
    if (udp_bind_double(&rtp, &rtcp,
src/input/mpegts/satip/satip_private.h
133 133
  int                        sf_type_v2;
134 134
  char                      *sf_type_override;
135 135
  int                        sf_master;
136
  int                        sf_no_tcp_mode;
136 137
  int                        sf_udp_rtp_port;
137 138
  int                        sf_play2;
138 139
  int                        sf_tdelay;
(2-2/3)