Commit bf2d5826 authored by Wim Taymans's avatar Wim Taymans
Browse files

gst/rtsp/gstrtspsrc.c: Support absolute control urls too.

Original commit message from CVS:
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_open), (gst_rtspsrc_play):
Support absolute control urls too.
parent 51a630d4
2005-08-17 Wim Taymans <wim@fluendo.com>
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_open), (gst_rtspsrc_play):
Support absolute control urls too.
2005-08-16 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
 
* gst/avi/gstavidemux.c: (gst_avi_demux_parse_stream),
......
......@@ -604,8 +604,13 @@ gst_rtspsrc_open (GstRTSPSrc * src)
continue;
}
/* FIXME, check absolute/relative URL */
setup_url = g_strdup_printf ("%s/%s", src->location, control_url);
/* check absolute/relative URL */
/* FIXME, what if the control_url starts with a '/' or a non rtsp: protocol? */
if (g_str_has_prefix (control_url, "rtsp://")) {
setup_url = g_strdup (control_url);
} else {
setup_url = g_strdup_printf ("%s/%s", src->location, control_url);
}
GST_DEBUG ("setup %s", setup_url);
/* create SETUP request */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment