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:
Thiago Santos 2016-02-02 16:51:22 -03:00
parent 1b12d7f8a3
commit c01d266238

View file

@ -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;
}