mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
client: replay OK to GET/SET_PARAMETER
Some clients (vlc) use GET/SET_PARAMETER to keep the TCP session open. Make it so that we return OK for those requests.
This commit is contained in:
parent
5955fc7d12
commit
461169537b
1 changed files with 6 additions and 2 deletions
|
@ -857,6 +857,8 @@ handle_options_request (GstRTSPClient *client, GstRTSPUrl *uri, GstRTSPSession *
|
|||
GST_RTSP_PAUSE |
|
||||
GST_RTSP_PLAY |
|
||||
GST_RTSP_SETUP |
|
||||
GST_RTSP_GET_PARAMETER |
|
||||
GST_RTSP_SET_PARAMETER |
|
||||
GST_RTSP_TEARDOWN;
|
||||
|
||||
str = gst_rtsp_options_as_text (options);
|
||||
|
@ -997,11 +999,13 @@ handle_request (GstRTSPClient *client, GstRTSPMessage *request)
|
|||
case GST_RTSP_TEARDOWN:
|
||||
handle_teardown_request (client, uri, session, request);
|
||||
break;
|
||||
case GST_RTSP_ANNOUNCE:
|
||||
case GST_RTSP_SET_PARAMETER:
|
||||
case GST_RTSP_GET_PARAMETER:
|
||||
send_generic_response (client, GST_RTSP_STS_OK, request);
|
||||
break;
|
||||
case GST_RTSP_ANNOUNCE:
|
||||
case GST_RTSP_RECORD:
|
||||
case GST_RTSP_REDIRECT:
|
||||
case GST_RTSP_SET_PARAMETER:
|
||||
send_generic_response (client, GST_RTSP_STS_NOT_IMPLEMENTED, request);
|
||||
break;
|
||||
case GST_RTSP_INVALID:
|
||||
|
|
Loading…
Reference in a new issue