diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-03-02 16:08:23 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-03-02 16:09:23 +0100 |
commit | 81f25317e669efac0907aaef0b28ac470e7cb482 (patch) | |
tree | c62a6363e71aea37b650699a142ff63ecab60f9b /gst/rtsp/gstrtspsrc.c | |
parent | 9f25f96155b246663a1f900624ccda4b9eafcded (diff) |
rtspsrc: add support for http tunneling
Add support for http tunneling and a new rtsph:// uri for it.
See #573173.
Diffstat (limited to 'gst/rtsp/gstrtspsrc.c')
-rw-r--r-- | gst/rtsp/gstrtspsrc.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; } |