From 12efe915accd112320d706ed8035cd35d2673aa8 Mon Sep 17 00:00:00 2001 From: Derek Dai Date: Tue, 21 Feb 2017 11:25:31 +0800 Subject: [PATCH] miracle-wfctl: reply 'request not implemented' instead of abort by assert() --- src/ctl/wfd-out-session.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/ctl/wfd-out-session.c b/src/ctl/wfd-out-session.c index 953feb3..6940160 100644 --- a/src/ctl/wfd-out-session.c +++ b/src/ctl/wfd-out-session.c @@ -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] = { },