diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2006-09-20 16:06:27 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2006-09-20 16:06:27 +0000 |
commit | a365a29c77d2ca41fcd3e15f22d24e7fe8f05e02 (patch) | |
tree | bcb6509cd572d4e74269f9de7afebd1220de55fc /gst/rtsp/sdpmessage.h | |
parent | a7d7309e18dca433661058e54651c2d1b78edc6a (diff) |
gst/rtsp/URLS: Added some test URLS.
Original commit message from CVS:
* gst/rtsp/URLS:
Added some test URLS.
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_create_stream),
(gst_rtspsrc_loop), (gst_rtspsrc_open):
* gst/rtsp/gstrtspsrc.h:
When creating streams, give access to the complete SDP.
Fix some leaks.
Collect and merge global stream properties in stream caps.
Preliminary support for WMServer.
* gst/rtsp/rtspconnection.c: (rtsp_connection_create),
(rtsp_connection_connect), (rtsp_connection_read), (read_body),
(rtsp_connection_receive):
* gst/rtsp/rtspconnection.h:
Make connection interruptable.
Refactor to make it reconnectable.
Don't fail on short reads when reading data packets.
* gst/rtsp/rtspurl.c: (rtsp_url_parse), (rtsp_url_set_port),
(rtsp_url_get_port):
* gst/rtsp/rtspurl.h:
Add methods for getting/setting the port.
* gst/rtsp/sdpmessage.c: (sdp_message_get_attribute_val_n),
(sdp_message_get_attribute_val), (sdp_media_get_attribute),
(sdp_media_get_attribute_val_n), (sdp_media_get_attribute_val),
(sdp_media_get_format), (sdp_parse_line),
(sdp_message_parse_buffer):
Fix headers.
Add methods for getting multiple attributes with the same name.
Increase buffer size when parsing.
Fix parsing of a=foo fields.
* gst/rtsp/test.c: (main):
Update to new connection API.
* gst/rtsp/rtspmessage.c: (rtsp_message_new_response),
(rtsp_message_init_response), (rtsp_message_init_data),
(rtsp_message_unset), (rtsp_message_free), (rtsp_message_dump):
* gst/rtsp/rtspmessage.h:
* gst/rtsp/rtsptransport.c: (rtsp_transport_free):
* gst/rtsp/rtsptransport.h:
* gst/rtsp/sdp.h:
* gst/rtsp/sdpmessage.h:
* gst/rtsp/gstrtsp.c:
* gst/rtsp/gstrtsp.h:
* gst/rtsp/gstrtpdec.c:
* gst/rtsp/gstrtpdec.h:
* gst/rtsp/rtsp.h:
* gst/rtsp/rtspdefs.c:
* gst/rtsp/rtspdefs.h:
Dual licensed under MIT and LGPL now.
Diffstat (limited to 'gst/rtsp/sdpmessage.h')
-rw-r--r-- | gst/rtsp/sdpmessage.h | 44 |
1 files changed, 35 insertions, 9 deletions
diff --git a/gst/rtsp/sdpmessage.h b/gst/rtsp/sdpmessage.h index 6360138f..97014bcd 100644 --- a/gst/rtsp/sdpmessage.h +++ b/gst/rtsp/sdpmessage.h @@ -1,5 +1,5 @@ /* GStreamer - * Copyright (C) <2005> Wim Taymans <wim@fluendo.com> + * Copyright (C) <2005,2006> Wim Taymans <wim@fluendo.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -16,6 +16,29 @@ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ +/* + * Unless otherwise indicated, Source Code is licensed under MIT license. + * See further explanation attached in License Statement (distributed in the file + * LICENSE). + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is furnished to do + * so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ #ifndef __SDP_MESSAGE_H__ #define __SDP_MESSAGE_H__ @@ -125,31 +148,32 @@ gchar* sdp_message_get_information (SDPMessage *msg); RTSPResult sdp_message_set_uri (SDPMessage *msg, gchar *uri); gchar* sdp_message_get_uri (SDPMessage *msg); gint sdp_message_emails_len (SDPMessage *msg); -gchar* sdp_message_get_email (SDPMessage *msg, gint i); +gchar* sdp_message_get_email (SDPMessage *msg, guint idx); RTSPResult sdp_message_add_email (SDPMessage *msg, gchar *email); gint sdp_message_phones_len (SDPMessage *msg); -gchar* sdp_message_get_phone (SDPMessage *msg, gint i); +gchar* sdp_message_get_phone (SDPMessage *msg, guint idx); RTSPResult sdp_message_add_phone (SDPMessage *msg, gchar *phone); RTSPResult sdp_message_set_connection (SDPMessage *msg, gchar *nettype, gchar *addrtype, gchar *address, gint ttl, gint addr_number); SDPConnection* sdp_message_get_connection (SDPMessage *msg); gint sdp_message_bandwidths_len (SDPMessage *msg); -SDPBandwidth* sdp_message_get_bandwidth (SDPMessage *msg, gint i); +SDPBandwidth* sdp_message_get_bandwidth (SDPMessage *msg, guint idx); RTSPResult sdp_message_add_bandwidth (SDPMessage *msg, gchar *bwtype, gint bandwidth); gint sdp_message_times_len (SDPMessage *msg); -SDPTime* sdp_message_get_time (SDPMessage *msg, gint i); +SDPTime* sdp_message_get_time (SDPMessage *msg, guint idx); RTSPResult sdp_message_add_time (SDPMessage *msg, gchar *time); gint sdp_message_zones_len (SDPMessage *msg); -SDPZone* sdp_message_get_zone (SDPMessage *msg, gint i); +SDPZone* sdp_message_get_zone (SDPMessage *msg, guint idx); RTSPResult sdp_message_add_zone (SDPMessage *msg, gchar *time, gchar *typed_time); RTSPResult sdp_message_set_key (SDPMessage *msg, gchar *type, gchar *data); SDPKey* sdp_message_get_key (SDPMessage *msg); gint sdp_message_attributes_len (SDPMessage *msg); -SDPAttribute* sdp_message_get_attribute (SDPMessage *msg, gint i); +SDPAttribute* sdp_message_get_attribute (SDPMessage *msg, guint idx); gchar* sdp_message_get_attribute_val (SDPMessage *msg, gchar *key); +gchar* sdp_message_get_attribute_val_n (SDPMessage *msg, gchar *key, guint nth); RTSPResult sdp_message_add_attribute (SDPMessage *msg, gchar *key, gchar *value); gint sdp_message_medias_len (SDPMessage *msg); -SDPMedia* sdp_message_get_media (SDPMessage *msg, gint i); +SDPMedia* sdp_message_get_media (SDPMessage *msg, guint idx); RTSPResult sdp_message_add_media (SDPMessage *msg, SDPMedia *media); @@ -161,8 +185,10 @@ RTSPResult sdp_media_init (SDPMedia *media); RTSPResult sdp_media_clean (SDPMedia *media); RTSPResult sdp_media_free (SDPMedia *media); +SDPAttribute * sdp_media_get_attribute (SDPMedia *media, guint idx); gchar* sdp_media_get_attribute_val (SDPMedia *media, gchar *key); -gchar* sdp_media_get_format (SDPMedia *media, gint i); +gchar* sdp_media_get_attribute_val_n (SDPMedia *media, gchar *key, guint nth); +gchar* sdp_media_get_format (SDPMedia *media, guint idx); G_END_DECLS |