diff options
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; +} |