From 81f25317e669efac0907aaef0b28ac470e7cb482 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 2 Mar 2009 16:08:23 +0100 Subject: rtspsrc: add support for http tunneling Add support for http tunneling and a new rtsph:// uri for it. See #573173. --- gst/rtsp/gstrtspsrc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gst/rtsp') diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 7c5ef8a6..80f8bd10 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -173,6 +173,7 @@ gst_rtsp_lower_trans_get_type (void) {GST_RTSP_LOWER_TRANS_UDP, "UDP Unicast Mode", "udp-unicast"}, {GST_RTSP_LOWER_TRANS_UDP_MCAST, "UDP Multicast Mode", "udp-multicast"}, {GST_RTSP_LOWER_TRANS_TCP, "TCP interleaved mode", "tcp"}, + {GST_RTSP_LOWER_TRANS_HTTP, "HTTP tunneled mode", "http"}, {0, NULL, NULL}, }; @@ -4241,6 +4242,9 @@ restart: if ((res = gst_rtsp_connection_create (src->url, &src->connection)) < 0) goto could_not_create; + if (src->url->transports & GST_RTSP_LOWER_TRANS_HTTP) + gst_rtsp_connection_set_tunneled (src->connection, TRUE); + /* connect */ GST_DEBUG_OBJECT (src, "connecting (%s)...", src->req_location); if ((res = @@ -5030,7 +5034,7 @@ gst_rtspsrc_uri_get_type (void) static gchar ** gst_rtspsrc_uri_get_protocols (void) { - static gchar *protocols[] = { "rtsp", "rtspu", "rtspt", NULL }; + static gchar *protocols[] = { "rtsp", "rtspu", "rtspt", "rtsph", NULL }; return protocols; } -- cgit