]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
RTSP: Use GET_PARAMETER in keep alive loop to prevent timeout
authorspdfrk <spdfrk123456@gmail.com>
Sun, 28 Feb 2016 09:52:16 +0000 (10:52 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 16 Mar 2016 07:56:33 +0000 (08:56 +0100)
Currently OPTIONS is used but the connection will still timeout.
With an empty GET_PARAMETER request the timer does reset.

src/input/mpegts/iptv/iptv_rtsp.c

index e56084b03167cf08f05e0b8a2c809c11670ac863..fc9639f7371a594b4c8175453bbc2eeefac24914 100644 (file)
@@ -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)));
 }