1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:47:34 +00:00

VideoPlayer/LibVideo: Seek accurately when scrolling in the seek bar

Fast seeking does not work correctly when seeking in small increments,
so it is necessary to use accurate seeking when using certain actions.

The PlaybackManager has been changed to accept the seek mode as a
parameter to `seek_to_timestamp` to facilitate this. This now means
that it no longer has to track a seek mode preference.
This commit is contained in:
Zaggy1024 2023-02-06 04:11:32 -06:00 committed by Andreas Kling
parent 1f650088a0
commit b0db56cd39
4 changed files with 6 additions and 21 deletions

View file

@ -46,7 +46,6 @@ private:
void set_current_timestamp(Time);
void set_time_label(Time);
void on_decoding_error(Video::DecoderError const&);
void update_seek_mode();
void cycle_sizing_modes();