Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
spdfrk authored and perexg committed Mar 16, 2016
1 parent c48c9c1 commit 46c49fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input/mpegts/iptv/iptv_rtsp.c
Expand Up @@ -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)));
}
Expand Down

0 comments on commit 46c49fe

Please sign in to comment.