summaryrefslogtreecommitdiff
path: root/gst-libs/gst
diff options
context:
space:
mode:
authorDavid Waring <david.waring@rd.bbc.co.uk>2016-02-02 13:50:25 +0000
committerThiago Santos <thiagoss@osg.samsung.com>2016-02-05 10:47:37 -0300
commit90fe6c5a5bdba98a51c17674f0e6c38cec04f7da (patch)
tree892ddebb70382a122ed3696f3694804ffd63b8d6 /gst-libs/gst
parent5f9065c11481c78edcf223acae0a63564f30a791 (diff)
downloadgstreamer-plugins-bad-90fe6c5a5bdba98a51c17674f0e6c38cec04f7da.tar.gz
adaptivedemux: Update position in stream->segment for new stream segment message.
https://bugzilla.gnome.org/show_bug.cgi?id=761458
Diffstat (limited to 'gst-libs/gst')
-rw-r--r--gst-libs/gst/adaptivedemux/gstadaptivedemux.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c
index c1658bf60..af4aa12ab 100644
--- a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c
+++ b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c
@@ -2686,7 +2686,6 @@ gst_adaptive_demux_stream_download_loop (GstAdaptiveDemuxStream * stream)
}
if (G_UNLIKELY (stream->restart_download)) {
- GstSegment segment;
GstEvent *seg_event;
GstClockTime cur, ts = 0;
gint64 pos;
@@ -2729,8 +2728,6 @@ gst_adaptive_demux_stream_download_loop (GstAdaptiveDemuxStream * stream)
GST_DEBUG_OBJECT (stream->pad, "Restarting stream at "
"position %" GST_TIME_FORMAT, GST_TIME_ARGS (ts));
- gst_segment_copy_into (&demux->segment, &segment);
-
if (GST_CLOCK_TIME_IS_VALID (ts)) {
GstClockTime offset, period_start;
@@ -2742,7 +2739,7 @@ gst_adaptive_demux_stream_download_loop (GstAdaptiveDemuxStream * stream)
gst_adaptive_demux_stream_seek (demux, stream, demux->segment.rate >= 0,
0, ts, &ts);
- segment.position = ts - period_start + offset;
+ stream->segment.position = ts - period_start + offset;
}
/* The stream's segment is still correct except for