1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-02-13 13:01:53 +00:00

miracle-wfctl: reply 'request not implemented' instead of abort by assert()

This commit is contained in:
Derek Dai 2017-02-21 11:25:31 +08:00
parent bba31c7fa7
commit 3a3ff4208d
No known key found for this signature in database
GPG key ID: E109CC97553EF009

View file

@ -628,6 +628,16 @@ static int wfd_out_session_request_trigger(struct wfd_session *s,
return 0;
}
static int wfd_out_session_request_not_implement(struct wfd_session *s,
struct rtsp_message *req,
struct rtsp_message **out_rep)
{
return rtsp_message_new_reply_for(req,
out_rep,
RTSP_CODE_NOT_IMPLEMENTED,
NULL);
}
static int wfd_out_session_request_set_parameter(struct wfd_session *s,
const struct wfd_arg_list *args,
struct rtsp_message **out)
@ -743,16 +753,21 @@ static const struct rtsp_dispatch_entry out_session_rtsp_disp_tbl[] = {
[RTSP_M9_PAUSE] = {
},
[RTSP_M10_SET_ROUTE] = {
.handle_request = wfd_out_session_request_not_implement
},
[RTSP_M11_SET_CONNECTOR_TYPE] = {
.handle_request = wfd_out_session_request_not_implement
},
[RTSP_M12_SET_STANDBY] = {
.handle_request = wfd_out_session_request_not_implement
},
[RTSP_M13_REQUEST_IDR] = {
.handle_request = wfd_out_session_request_not_implement
},
[RTSP_M14_ESTABLISH_UIBC] = {
},
[RTSP_M15_ENABLE_UIBC] = {
.handle_request = wfd_out_session_request_not_implement
},
[RTSP_M16_KEEPALIVE] = {
},