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
@ -607,8 +607,12 @@ gst_mss_demux_seek (GstAdaptiveDemux * demux, GstEvent * seek)
|
|||||||
"seek event, rate: %f start: %" GST_TIME_FORMAT " stop: %"
|
"seek event, rate: %f start: %" GST_TIME_FORMAT " stop: %"
|
||||||
GST_TIME_FORMAT, rate, GST_TIME_ARGS (start), GST_TIME_ARGS (stop));
|
GST_TIME_FORMAT, rate, GST_TIME_ARGS (start), GST_TIME_ARGS (stop));
|
||||||
|
|
||||||
if (SEEK_UPDATES_PLAY_POSITION (rate, start_type, stop_type))
|
if (SEEK_UPDATES_PLAY_POSITION (rate, start_type, stop_type)) {
|
||||||
gst_mss_manifest_seek (mssdemux->manifest, start);
|
if (rate >= 0)
|
||||||
|
gst_mss_manifest_seek (mssdemux->manifest, rate >= 0, start);
|
||||||
|
else
|
||||||
|
gst_mss_manifest_seek (mssdemux->manifest, rate >= 0, stop);
|
||||||
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user