Fix end time calculation with with non-1x speed

This commit is contained in:
Rafał Dzięgiel
2022-03-06 15:51:06 +01:00
parent 159f96c984
commit c94d21fc53

View File

@@ -345,7 +345,8 @@ class ClapperWidget extends Gtk.Grid
const currTime = GLib.DateTime.new_now_local();
const endTime = currTime.add_seconds(
this.controls.positionAdjustment.get_upper() - this.controls.currentPosition
(this.controls.positionAdjustment.get_upper() - this.controls.currentPosition)
/ this.controls.elapsedButton.speedScale.get_value()
);
const nextUpdate = this.revealerTop.setTimes(currTime, endTime, this.isSeekable);