From dd54e000eab0b8f4cf72cbb4a9b374d03fb1ba58 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 20 Aug 2008 17:30:19 +0000 Subject: gst/rtsp/: Add google RTSP extension, it can only handle udp and responds with unsupported if we do anything else. Fi... Original commit message from CVS: * gst/rtsp/Makefile.am: * gst/rtsp/gstrtsp.c: (plugin_init): * gst/rtsp/gstrtspgoogle.c: (gst_rtsp_google_before_send), (gst_rtsp_google_after_send), (gst_rtsp_google_get_transports), (_do_init), (gst_rtsp_google_base_init), (gst_rtsp_google_class_init), (gst_rtsp_google_init), (gst_rtsp_google_finalize), (gst_rtsp_google_change_state), (gst_rtsp_google_extension_init): * gst/rtsp/gstrtspgoogle.h: Add google RTSP extension, it can only handle udp and responds with unsupported if we do anything else. Fixes #546465. * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_connection_send), (gst_rtspsrc_connection_receive), (gst_rtspsrc_loop_send_cmd), (gst_rtspsrc_create_transports_string), (gst_rtspsrc_setup_streams), (gst_rtspsrc_open), (gst_rtspsrc_close), (gst_rtspsrc_pause): Make transport setup code a bit better using GString. Add some more debug. Check for closed connections before doing anything on them. --- gst/rtsp/gstrtsp.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gst/rtsp/gstrtsp.c') diff --git a/gst/rtsp/gstrtsp.c b/gst/rtsp/gstrtsp.c index 045c03a6..476ebaa5 100644 --- a/gst/rtsp/gstrtsp.c +++ b/gst/rtsp/gstrtsp.c @@ -47,6 +47,7 @@ #include "gstrtpdec.h" #include "gstrtspsrc.h" +#include "gstrtspgoogle.h" static gboolean plugin_init (GstPlugin * plugin) @@ -57,6 +58,10 @@ plugin_init (GstPlugin * plugin) if (!gst_element_register (plugin, "rtpdec", GST_RANK_NONE, GST_TYPE_RTP_DEC)) return FALSE; + if (!gst_element_register (plugin, "rtspgoogle", GST_RANK_SECONDARY, + GST_TYPE_RTSP_GOOGLE)) { + return FALSE; + } return TRUE; } -- cgit