From ca7870de496c31f5377b1cdecd32de59921d61a9 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Tue, 19 Oct 2010 16:45:51 +0200 Subject: [PATCH] rtspsrc: fix duration reporting Init segment prior to storing duration info in it. Fixes #632548. --- 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 9afa3c7..32b8bdd 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -5163,6 +5163,8 @@ gst_rtspsrc_open_from_sdp (GstRTSPSrc * src, GstSDPMessage * sdp) gst_rtsp_ext_list_parse_sdp (src->extensions, sdp, src->props); + gst_segment_init (&src->segment, GST_FORMAT_TIME); + /* parse range for duration reporting. */ { const gchar *range; @@ -5221,7 +5223,6 @@ gst_rtspsrc_open_from_sdp (GstRTSPSrc * src, GstSDPMessage * sdp) goto setup_failed; /* reset our state */ - gst_segment_init (&src->segment, GST_FORMAT_TIME); src->need_range = TRUE; src->skip = FALSE; -- 2.7.4