dashdemux: respect seeking parameter
Instead of using the segment values, use the parameter requested in the seeking argument
This commit is contained in:
parent
cfcba7bc0f
commit
fc72e48a48
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user