Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use the correct host to send rtcp reports
  • Loading branch information
Glandos authored and perexg committed Jun 2, 2015
1 parent 8a4c8ce commit 1ce56a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/input/mpegts/iptv/iptv_rtsp.c
Expand Up @@ -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;
Expand Down

0 comments on commit 1ce56a9

Please sign in to comment.