summaryrefslogtreecommitdiffstats
path: root/gst/rtsp/gstrtsp.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2008-08-20 17:30:19 +0000
committerWim Taymans <wim.taymans@gmail.com>2008-08-20 17:30:19 +0000
commitdd54e000eab0b8f4cf72cbb4a9b374d03fb1ba58 (patch)
tree3a2e8fbfc25af8b9a3656f35e6eda345f0336d6c /gst/rtsp/gstrtsp.c
parent4ab89b397e32c041fd8174071a7686b8547643d0 (diff)
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.
Diffstat (limited to 'gst/rtsp/gstrtsp.c')
-rw-r--r--gst/rtsp/gstrtsp.c5
1 files changed, 5 insertions, 0 deletions
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;
}