Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remember the server address:port in the RTCP connection
  • Loading branch information
Glandos authored and perexg committed Jun 2, 2015
1 parent 768b008 commit fb7f7c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/input/mpegts/iptv/iptv_rtsp.c
Expand Up @@ -91,6 +91,10 @@ 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)) {
tvhlog(LOG_WARNING, "rtsp", "Can't connect to remote, RTCP receiver reports won't be sent");
}
hc->hc_cmd = HTTP_CMD_NONE;
pthread_mutex_lock(&global_lock);
iptv_input_mux_started(hc->hc_aux);
Expand Down

0 comments on commit fb7f7c2

Please sign in to comment.