dashdemux: respect seeking parameter

Instead of using the segment values, use the parameter
requested in the seeking argument
This commit is contained in:
Thiago Santos 2016-01-29 20:34:42 -03:00
parent cfcba7bc0f
commit fc72e48a48

View file

@ -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,