From 3e064477cf6aef0a38c23d67bf8628869f3cf7f9 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 18 Aug 2005 20:14:46 +0000 Subject: gst/rtp/gstrtpamrdec.c: Fix up amr depayloader a bit. Original commit message from CVS: * gst/rtp/gstrtpamrdec.c: (gst_rtpamrdec_init), (gst_rtpamrdec_chain): Fix up amr depayloader a bit. * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_send), (gst_rtspsrc_open), (gst_rtspsrc_close), (gst_rtspsrc_play): Look for options result in Public and Allow header fields.. spec says Allow but some servers return Public... --- gst/rtsp/gstrtspsrc.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'gst/rtsp') diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 1e04ef7c..5ac136a6 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -581,9 +581,15 @@ gst_rtspsrc_open (GstRTSPSrc * src) gchar **options; gint i; - rtsp_message_get_header (&response, RTSP_HDR_PUBLIC, &respoptions); - if (!respoptions) - goto no_options; + /* Try Allow Header first */ + rtsp_message_get_header (&response, RTSP_HDR_ALLOW, &respoptions); + if (!respoptions) { + /* Then maybe Public Header... */ + rtsp_message_get_header (&response, RTSP_HDR_PUBLIC, &respoptions); + if (!respoptions) { + goto no_options; + } + } /* parse options */ options = g_strsplit (respoptions, ",", 0); -- cgit