From: Adrien CLERC Date: Sun, 31 May 2015 13:06:13 +0000 (+0200) Subject: Parse RTCP server port, it is mandatory to send RTCP reports X-Git-Tag: v4.2.1~2391 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=768b008758eb836a8bc4f3605094b43ade15c072;p=thirdparty%2Ftvheadend.git Parse RTCP server port, it is mandatory to send RTCP reports --- diff --git a/src/http.h b/src/http.h index 147032ec2..dd3c19356 100644 --- a/src/http.h +++ b/src/http.h @@ -319,6 +319,7 @@ struct http_client { char *hc_rtp_dest; int hc_rtp_port; int hc_rtpc_port; + int hc_rtcp_server_port; int hc_rtp_multicast:1; long hc_rtsp_stream_id; int hc_rtp_timeout; diff --git a/src/rtsp.c b/src/rtsp.c index a851fa0d9..4f706f94b 100644 --- a/src/rtsp.c +++ b/src/rtsp.c @@ -170,6 +170,16 @@ rtsp_setup_decode( http_client_t *hc, int satip ) return -EIO; } } + else if (strncmp(argv[i], "server_port=", 12) == 0) { + j = http_tokenize(argv[i] + 12, argv2, 2, '-'); + if (j > 1) { + hc->hc_rtcp_server_port = atoi(argv2[1]); + if (hc->hc_rtcp_server_port <= 0) + return -EIO; + } else { + return -EIO; + } + } } return HTTP_CON_OK; }