mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
mssdemux: use correct seek position on reverse seeks
Otherwise it was always using the 'start' value, leading to wrong behavior
This commit is contained in:
parent
1b12d7f8a3
commit
c01d266238
1 changed files with 6 additions and 2 deletions
|
@ -607,8 +607,12 @@ gst_mss_demux_seek (GstAdaptiveDemux * demux, GstEvent * seek)
|
|||
"seek event, rate: %f start: %" GST_TIME_FORMAT " stop: %"
|
||||
GST_TIME_FORMAT, rate, GST_TIME_ARGS (start), GST_TIME_ARGS (stop));
|
||||
|
||||
if (SEEK_UPDATES_PLAY_POSITION (rate, start_type, stop_type))
|
||||
gst_mss_manifest_seek (mssdemux->manifest, start);
|
||||
if (SEEK_UPDATES_PLAY_POSITION (rate, start_type, stop_type)) {
|
||||
if (rate >= 0)
|
||||
gst_mss_manifest_seek (mssdemux->manifest, rate >= 0, start);
|
||||
else
|
||||
gst_mss_manifest_seek (mssdemux->manifest, rate >= 0, stop);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue