From 1ce56a9bc3f18c8ca9fcaf05221465063b8fb6f5 Mon Sep 17 00:00:00 2001 From: Adrien CLERC Date: Sun, 31 May 2015 15:41:10 +0200 Subject: [PATCH] Use the correct host to send rtcp reports --- src/input/mpegts/iptv/iptv_rtsp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.47.2