diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2008-08-20 17:30:19 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2008-08-20 17:30:19 +0000 |
commit | dd54e000eab0b8f4cf72cbb4a9b374d03fb1ba58 (patch) | |
tree | 3a2e8fbfc25af8b9a3656f35e6eda345f0336d6c /gst/rtsp/gstrtspgoogle.h | |
parent | 4ab89b397e32c041fd8174071a7686b8547643d0 (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/gstrtspgoogle.h')
-rw-r--r-- | gst/rtsp/gstrtspgoogle.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/gst/rtsp/gstrtspgoogle.h b/gst/rtsp/gstrtspgoogle.h new file mode 100644 index 00000000..4d5aa50c --- /dev/null +++ b/gst/rtsp/gstrtspgoogle.h @@ -0,0 +1,50 @@ +/* GStreamer + * Copyright (C) <2008> Wim Taymans <wim.taymans@gmail.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __GST_RTSP_GOOGLE_H__ +#define __GST_RTSP_GOOGLE_H__ + +#include <gst/gst.h> + +G_BEGIN_DECLS + +#define GST_TYPE_RTSP_GOOGLE (gst_rtsp_google_get_type()) +#define GST_IS_RTSP_GOOGLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_RTSP_GOOGLE)) +#define GST_IS_RTSP_GOOGLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RTSP_GOOGLE)) +#define GST_RTSP_GOOGLE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_RTSP_GOOGLE, GstRTSPGoogle)) +#define GST_RTSP_GOOGLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_RTSP_GOOGLE, GstRTSPGoogleClass)) + +typedef struct _GstRTSPGoogle GstRTSPGoogle; +typedef struct _GstRTSPGoogleClass GstRTSPGoogleClass; + +struct _GstRTSPGoogle { + GstElement element; + + gboolean active; +}; + +struct _GstRTSPGoogleClass { + GstElementClass parent_class; +}; + +GType gst_rtsp_google_get_type(void); + +G_END_DECLS + +#endif /* __GST_RTSP_GOOGLE_H__ */ |