[gst-cvs] gst-plugins-good: rtsp: try all ranges from the sdp
Wim Taymans
wtay at kemper.freedesktop.org
Fri Jun 4 05:01:08 PDT 2010
Module: gst-plugins-good
Branch: master
Commit: cb8252275d414f5f397f63283a7d50058236a19f
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=cb8252275d414f5f397f63283a7d50058236a19f
Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date: Fri Jun 4 13:57:28 2010 +0200
rtsp: try all ranges from the sdp
Try all ranges in the SDP before giving up.
---
gst/rtsp/gstrtspsrc.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index da77b95..85a1a53 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;
}
}
More information about the Gstreamer-commits
mailing list