summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2006-03-21 16:19:37 +0000
committerWim Taymans <wim.taymans@gmail.com>2006-03-21 16:19:37 +0000
commit6d9a3ecc4c3b726d1079114882716aa897509721 (patch)
tree39a4150de71fcab18a5f73cb2b9fcd0dcf4cae4f
parent0186335dd2c27f77180920d010fa4de1eafc73fa (diff)
gst/rtsp/gstrtspsrc.c: the OPTIONS request result is optional so don't fail on it.
Original commit message from CVS: * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_open): the OPTIONS request result is optional so don't fail on it.
-rw-r--r--ChangeLog6
-rw-r--r--gst/rtsp/gstrtspsrc.c11
2 files changed, 11 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 467c52f0..74bdd33a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-03-21 Wim Taymans <wim@fluendo.com>
+
+ * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_open):
+ the OPTIONS request result is optional so don't
+ fail on it.
+
2006-03-21 Edward Hervey <edward@fluendo.com>
* gst/apetag/gsttagdemux.c: (gst_tag_demux_reset):
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index 1bf57efc..f0481968 100644
--- a/gst/rtsp/gstrtspsrc.c
+++ b/gst/rtsp/gstrtspsrc.c
@@ -873,6 +873,10 @@ gst_rtspsrc_open (GstRTSPSrc * src)
/* Then maybe Public Header... */
rtsp_message_get_header (&response, RTSP_HDR_PUBLIC, &respoptions);
if (!respoptions) {
+ /* this field is not required, assume the server supports
+ * DESCRIBE and SETUP*/
+ GST_DEBUG_OBJECT (src, "could not get OPTIONS");
+ src->options = RTSP_DESCRIBE | RTSP_SETUP;
goto no_options;
}
}
@@ -897,6 +901,7 @@ gst_rtspsrc_open (GstRTSPSrc * src)
}
g_strfreev (options);
+ no_options:
/* we need describe and setup */
if (!(src->options & RTSP_DESCRIBE))
goto no_describe;
@@ -1085,12 +1090,6 @@ send_error:
("Could not send message."), (NULL));
return FALSE;
}
-no_options:
- {
- GST_ELEMENT_ERROR (src, RESOURCE, WRITE,
- ("Invalid OPTIONS response."), (NULL));
- return FALSE;
- }
no_describe:
{
GST_ELEMENT_ERROR (src, RESOURCE, WRITE,