From cb8252275d414f5f397f63283a7d50058236a19f Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 4 Jun 2010 13:57:28 +0200 Subject: [PATCH] rtsp: try all ranges from the sdp Try all ranges in the SDP before giving up. --- gst/rtsp/gstrtspsrc.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index da77b952c4..85a1a53a3e 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -5006,10 +5006,14 @@ restart: { const gchar *range; - range = gst_sdp_message_get_attribute_val (&sdp, "range"); - if (range) { + for (i = 0;; i++) { + range = gst_sdp_message_get_attribute_val_n (&sdp, "range", i); + if (range == NULL) + break; + /* keep track of the range and configure it in the segment */ - gst_rtspsrc_parse_range (src, range, &src->segment); + if (gst_rtspsrc_parse_range (src, range, &src->segment)) + break; } }