mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue