rtspdefs: add RFC 4567 headers and status code

This new Header and status code is used for SRTP
This commit is contained in:
Wim Taymans 2014-03-06 15:34:47 +01:00
parent 5e364c1d7b
commit 4898c30537
2 changed files with 8 additions and 0 deletions

View file

@ -174,6 +174,9 @@ static struct rtsp_header rtsp_headers[] = {
/* Since 0.10.36 */
{"RTCP-Interval", FALSE},
/* Since 1.4 */
{"KeyMgmt", FALSE},
{NULL, FALSE}
};
@ -229,6 +232,7 @@ rtsp_init_status (void)
"Only aggregate operation allowed");
DEF_STATUS (GST_RTSP_STS_UNSUPPORTED_TRANSPORT, "Unsupported transport");
DEF_STATUS (GST_RTSP_STS_DESTINATION_UNREACHABLE, "Destination unreachable");
DEF_STATUS (GST_RTSP_STS_KEY_MANAGEMENT_FAILURE, "Key management failure");
DEF_STATUS (GST_RTSP_STS_INTERNAL_SERVER_ERROR, "Internal Server Error");
DEF_STATUS (GST_RTSP_STS_NOT_IMPLEMENTED, "Not Implemented");
DEF_STATUS (GST_RTSP_STS_BAD_GATEWAY, "Bad Gateway");

View file

@ -335,6 +335,9 @@ typedef enum {
/* Since 0.10.36 */
GST_RTSP_HDR_RTCP_INTERVAL, /* RTCP-Interval */
/* Since 1.4 */
GST_RTSP_HDR_KEYMGMT, /* KeyMgmt */
GST_RTSP_HDR_LAST
} GstRTSPHeaderField;
@ -382,6 +385,7 @@ typedef enum {
GST_RTSP_STS_ONLY_AGGREGATE_OPERATION_ALLOWED = 460,
GST_RTSP_STS_UNSUPPORTED_TRANSPORT = 461,
GST_RTSP_STS_DESTINATION_UNREACHABLE = 462,
GST_RTSP_STS_KEY_MANAGEMENT_FAILURE = 463, /* since 1.4 */
GST_RTSP_STS_INTERNAL_SERVER_ERROR = 500,
GST_RTSP_STS_NOT_IMPLEMENTED = 501,
GST_RTSP_STS_BAD_GATEWAY = 502,