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/test.c | |
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/test.c')
-rw-r--r-- | gst/rtsp/test.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gst/rtsp/test.c b/gst/rtsp/test.c index 3e2f2fdd..de7ffdde 100644 --- a/gst/rtsp/test.c +++ b/gst/rtsp/test.c @@ -47,9 +47,17 @@ main (int argc, gchar * argv[]) g_print (" url port: %d\n", url->port); g_print (" url path: %s\n", url->abspath); + /* create and open connection */ + g_print ("creating connection...\n"); + res = rtsp_connection_create (url, &conn); + if (res != RTSP_OK) { + g_print ("error creating connection to \"%s\"\n", urlstr); + return (-1); + } + /* open connection */ g_print ("opening connection...\n"); - res = rtsp_connection_open (url, &conn); + res = rtsp_connection_connect (conn); if (res != RTSP_OK) { g_print ("error opening connection to \"%s\"\n", urlstr); return (-1); |