rtsp: try all ranges from the sdp

Try all ranges in the SDP before giving up.
This commit is contained in:
Wim Taymans 2010-06-04 13:57:28 +02:00
parent 6fbca707bb
commit cb8252275d

View file

@ -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;
}
}