libavformat/rtsp.c: Reply to GET_PARAMETER requests
authorHayden Myers <hmyers@skylinenet.net>
Mon, 12 Jul 2021 13:00:34 +0000 (16:00 +0300)
committerMartin Storsjö <martin@martin.st>
Mon, 12 Jul 2021 13:00:48 +0000 (16:00 +0300)
commit9b4b0df47009ebc3d26bf3f1b1eff668fd028cc6
tree1f2b337eb58166bf2a96e55f8ec12104e6cdf468
parenta948e47960fb16819af16d0542a203c59d8de157
libavformat/rtsp.c: Reply to GET_PARAMETER requests

Some encoders send GET_PARAMETER requests as a keep-alive mechanism.
If the client doesn't reply with an OK message, the encoder will close
the session.  This was encountered with the impath i5110 encoder, when
the RTSP Keep-Alive checkbox is enabled under streaming settings.
Alternatively one may set the X-No-Keepalive: 1 header, but this is more
of a workaround.  It's better practice to respond to an encoder's
keep-alive request, than disable the mechanism which may be manufacturer
specific.

Signed-off-by: Hayden Myers <hmyers@skylinenet.net>
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtsp.c