From: Adrien CLERC Date: Sun, 31 May 2015 13:41:10 +0000 (+0200) Subject: Use the correct host to send rtcp reports X-Git-Tag: v4.2.1~2388 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ce56a9bc3f18c8ca9fcaf05221465063b8fb6f5;p=thirdparty%2Ftvheadend.git Use the correct host to send rtcp reports --- diff --git a/src/input/mpegts/iptv/iptv_rtsp.c b/src/input/mpegts/iptv/iptv_rtsp.c index 7c2d26d35..51abbe63a 100644 --- a/src/input/mpegts/iptv/iptv_rtsp.c +++ b/src/input/mpegts/iptv/iptv_rtsp.c @@ -92,7 +92,8 @@ iptv_rtsp_header ( http_client_t *hc ) break; case RTSP_CMD_PLAY: // Now let's set peer port for RTCP - if (udp_connect(rp->rtcp_info->connection, "rtcp", hc->hc_rtp_dest, hc->hc_rtcp_server_port)) { + // Use the HTTP host for sending RTCP reports, NOT the hc_rtp_dest (which is where the stream is sent) + if (udp_connect(rp->rtcp_info->connection, "rtcp", hc->hc_host, hc->hc_rtcp_server_port)) { tvhlog(LOG_WARNING, "rtsp", "Can't connect to remote, RTCP receiver reports won't be sent"); } hc->hc_cmd = HTTP_CMD_NONE;