]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Use the correct host to send rtcp reports
authorAdrien CLERC <adrien@antipoul.fr>
Sun, 31 May 2015 13:41:10 +0000 (15:41 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 2 Jun 2015 13:38:15 +0000 (15:38 +0200)
src/input/mpegts/iptv/iptv_rtsp.c

index 7c2d26d353fe0265d8e461d74fb368b137773c8a..51abbe63afa8c0d59520ed841d064ce4342a9111 100644 (file)
@@ -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;