mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
rtsp: try all ranges from the sdp
Try all ranges in the SDP before giving up.
This commit is contained in:
parent
6fbca707bb
commit
cb8252275d
1 changed files with 7 additions and 3 deletions
|
@ -5006,10 +5006,14 @@ restart:
|
||||||
{
|
{
|
||||||
const gchar *range;
|
const gchar *range;
|
||||||
|
|
||||||
range = gst_sdp_message_get_attribute_val (&sdp, "range");
|
for (i = 0;; i++) {
|
||||||
if (range) {
|
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 */
|
/* 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue