diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2005-05-11 12:01:10 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2005-05-11 12:01:10 +0000 |
commit | 63177e073100ce81a14338c464bb1cb83c27c3a7 (patch) | |
tree | 469146b7fd30b5f34a9dbce9ec2455f59d8da294 /gst/rtsp/rtspdefs.c | |
parent | 91ce2b294e5538313bea3ddf7adaf1373d778384 (diff) |
gst/rtsp/: Added README
Original commit message from CVS:
* gst/rtsp/README:
* gst/rtsp/gstrtspsrc.c: (gst_rtsp_proto_get_type),
(gst_rtspsrc_class_init), (gst_rtspsrc_create_stream),
(gst_rtspsrc_add_element), (gst_rtspsrc_set_state),
(gst_rtspsrc_stream_setup_rtp),
(gst_rtspsrc_stream_configure_transport), (find_stream),
(gst_rtspsrc_loop), (gst_rtspsrc_open), (gst_rtspsrc_play):
* gst/rtsp/rtsp.h:
* gst/rtsp/rtspconnection.c: (rtsp_connection_create),
(rtsp_connection_send), (read_line), (parse_request_line),
(parse_line), (read_body), (rtsp_connection_receive),
(rtsp_connection_free):
* gst/rtsp/rtspconnection.h:
* gst/rtsp/rtspdefs.c: (rtsp_find_method):
* gst/rtsp/rtspdefs.h:
* gst/rtsp/rtspmessage.c: (rtsp_message_set_body),
(rtsp_message_take_body):
* gst/rtsp/rtspmessage.h:
* gst/rtsp/rtspstream.h:
* gst/rtsp/sdpmessage.c: (sdp_parse_line):
Added README
Some cleanups.
Diffstat (limited to 'gst/rtsp/rtspdefs.c')
-rw-r--r-- | gst/rtsp/rtspdefs.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gst/rtsp/rtspdefs.c b/gst/rtsp/rtspdefs.c index 729e3b55..61b9a87d 100644 --- a/gst/rtsp/rtspdefs.c +++ b/gst/rtsp/rtspdefs.c @@ -169,3 +169,16 @@ rtsp_find_header_field (gchar * header) } return -1; } + +RTSPMethod +rtsp_find_method (gchar * method) +{ + gint idx; + + for (idx = 0; rtsp_methods[idx]; idx++) { + if (g_ascii_strcasecmp (rtsp_headers[idx], method) == 0) { + return idx; + } + } + return -1; +} |