Commit 229e2631 authored by Martin Storsjö's avatar Martin Storsjö Committed by Luca Barbato

rtsp: Use GET_PARAMETER for keep-alive for generic RTSP servers

According to the RFC, GET_PARAMETER should be used for
this, and according to a report from Tim Ouellette,
OPTIONS doesn't work for keeping the connection alive for some
servers. Also, live555 uses GET_PARAMETER for this purpose.
Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
parent 4b6f097b
......@@ -340,7 +340,7 @@ retry:
/* send dummy request to keep TCP connection alive */
if ((av_gettime() - rt->last_cmd_time) / 1000000 >= rt->timeout / 2) {
if (rt->server_type == RTSP_SERVER_WMS) {
if (rt->server_type != RTSP_SERVER_REAL) {
ff_rtsp_send_cmd_async(s, "GET_PARAMETER", rt->control_uri, NULL);
} else {
ff_rtsp_send_cmd_async(s, "OPTIONS", "*", NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment