mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
rtspsrc: fix duration reporting
Init segment prior to storing duration info in it. Fixes #632548.
This commit is contained in:
parent
28d96250c6
commit
ca7870de49
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue