From fc72e48a489dcd7e9de5313bf0c6e487b783a1ae Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Fri, 29 Jan 2016 20:34:42 -0300 Subject: [PATCH] dashdemux: respect seeking parameter Instead of using the segment values, use the parameter requested in the seeking argument --- ext/dash/gstdashdemux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index 1cc60ce9bc..783eb04d94 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -1280,9 +1280,9 @@ gst_dash_demux_seek (GstAdaptiveDemux * demux, GstEvent * seek) /* TODO check if start-type/stop-type is SET */ if (demux->segment.rate > 0.0) - target_pos = (GstClockTime) demux->segment.start; + target_pos = (GstClockTime) start; else - target_pos = (GstClockTime) demux->segment.stop; + target_pos = (GstClockTime) stop; /* select the requested Period in the Media Presentation */ if (!gst_mpd_client_setup_media_presentation (dashdemux->client, target_pos,