From 3b6e9fc8701920848ea5d13db97f885dd01e655c Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 4 Mar 2009 12:18:00 +0100 Subject: [PATCH] rtsp: add new defines for tunneling Add two more result codes for tunneling support. --- gst-libs/gst/rtsp/gstrtspdefs.c | 2 ++ gst-libs/gst/rtsp/gstrtspdefs.h | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/rtsp/gstrtspdefs.c b/gst-libs/gst/rtsp/gstrtspdefs.c index dd20e1cb13..8e4bf7b5ff 100644 --- a/gst-libs/gst/rtsp/gstrtspdefs.c +++ b/gst-libs/gst/rtsp/gstrtspdefs.c @@ -83,6 +83,8 @@ static const gchar *rtsp_results[] = { "Network error: %s", "Host is not a valid IP address", "Timeout while waiting for server response", + "Tunnel GET request received", + "Tunnel POST request received", "Unknown error (%d)", NULL }; diff --git a/gst-libs/gst/rtsp/gstrtspdefs.h b/gst-libs/gst/rtsp/gstrtspdefs.h index 8307212547..f1288137b5 100644 --- a/gst-libs/gst/rtsp/gstrtspdefs.h +++ b/gst-libs/gst/rtsp/gstrtspdefs.h @@ -79,6 +79,8 @@ G_STMT_START { \ * @GST_RTSP_ENOTIP: the host is not an IP host * @GST_RTSP_ETIMEOUT: a timeout occured * @GST_RTSP_ELAST: last error + * @GST_RTSP_ETGET: the tunnel GET request has been performed + * @GST_RTSP_ETPOST: the tunnel POST request has been performed * * Result codes from the RTSP functions. */ @@ -99,8 +101,10 @@ typedef enum { GST_RTSP_ENET = -12, GST_RTSP_ENOTIP = -13, GST_RTSP_ETIMEOUT = -14, + GST_RTSP_ETGET = -15, + GST_RTSP_ETPOST = -16, - GST_RTSP_ELAST = -15 + GST_RTSP_ELAST = -17 } GstRTSPResult; /**