From: spdfrk Date: Sun, 28 Feb 2016 09:52:16 +0000 (+0100) Subject: RTSP: Use GET_PARAMETER in keep alive loop to prevent timeout X-Git-Tag: v4.2.1~859 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=46c49fe333fffca469c4d8277d7cabdce5dab59e;p=thirdparty%2Ftvheadend.git RTSP: Use GET_PARAMETER in keep alive loop to prevent timeout Currently OPTIONS is used but the connection will still timeout. With an empty GET_PARAMETER request the timer does reset. --- diff --git a/src/input/mpegts/iptv/iptv_rtsp.c b/src/input/mpegts/iptv/iptv_rtsp.c index e56084b03..fc9639f73 100644 --- a/src/input/mpegts/iptv/iptv_rtsp.c +++ b/src/input/mpegts/iptv/iptv_rtsp.c @@ -53,7 +53,7 @@ iptv_rtsp_alive_cb ( void *aux ) iptv_mux_t *im = aux; rtsp_priv_t *rp = im->im_data; - rtsp_send(rp->hc, RTSP_CMD_OPTIONS, rp->path, rp->query, NULL); + rtsp_get_parameter(rp->hc, ""); mtimer_arm_rel(&rp->alive_timer, iptv_rtsp_alive_cb, im, sec2mono(MAX(1, (rp->hc->hc_rtp_timeout / 2) - 1))); }