From 148af2235ef4a230dd9c52d27bb46853f71f7c78 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Wed, 1 Dec 2010 16:51:33 +0100 Subject: [PATCH] rtspsrc: include range request for all streams with non-aggregate control --- gst/rtsp/gstrtspsrc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 9e991ce..aa4ec16 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -5804,7 +5804,6 @@ gst_rtspsrc_play (GstRTSPSrc * src, GstSegment * segment) gst_rtsp_message_add_header (&request, GST_RTSP_HDR_RANGE, hval); g_free (hval); - src->need_range = FALSE; } if (segment->rate != 1.0) { @@ -5856,6 +5855,8 @@ gst_rtspsrc_play (GstRTSPSrc * src, GstSegment * segment) if (control) break; } + /* set again when needed */ + src->need_range = FALSE; /* configure the caps of the streams after we parsed all headers. */ gst_rtspsrc_configure_caps (src, segment); -- 2.7.4