From 8b842be17fb01ff86c4df26d5fb5910c98fa1fdb Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Thu, 10 Dec 2020 13:23:12 +0100 Subject: [PATCH] [evrtsp] Add support for SETPEERS and GET --- src/evrtsp/evrtsp.h | 2 ++ src/evrtsp/rtsp.c | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/src/evrtsp/evrtsp.h b/src/evrtsp/evrtsp.h index 64635e62..330eec11 100644 --- a/src/evrtsp/evrtsp.h +++ b/src/evrtsp/evrtsp.h @@ -64,6 +64,8 @@ enum evrtsp_cmd_type { EVRTSP_REQ_FLUSH, EVRTSP_REQ_TEARDOWN, EVRTSP_REQ_POST, + EVRTSP_REQ_GET, + EVRTSP_REQ_SETPEERS, }; enum evrtsp_request_kind { EVRTSP_REQUEST, EVRTSP_RESPONSE }; diff --git a/src/evrtsp/rtsp.c b/src/evrtsp/rtsp.c index 98ca6191..692e0596 100644 --- a/src/evrtsp/rtsp.c +++ b/src/evrtsp/rtsp.c @@ -264,6 +264,14 @@ evrtsp_method(enum evrtsp_cmd_type type) method = "POST"; break; + case EVRTSP_REQ_GET: + method = "GET"; + break; + + case EVRTSP_REQ_SETPEERS: + method = "SETPEERS"; + break; + default: method = NULL; break;