player: improve seek
- Jan 19, 2024
-
-
Set the time and position to the requested seek point. Pause timers while seeking.
c20e4543 -
The input_thread can now only seek with absolute values.
396c8141 -
Don't use INPUT_CONTROL_JUMP_POSITION and INPUT_CONTROL_JUMP_TIME, that use input times from the demuxer. Instead, add up the time from the player timer, that use ts from the output clocks. This fixes a possible gap with relatives seeks, depending on the input source or output delay (aout). For examples, seeking -3s was seeking -2s and seeking +3s was seeking +4s before this commit. Now seeking back and forth with stay at the same position. Fixes #28482 Fixes #27383
05c9c727 -
293d8919
-
Keep the last requested seek position/time, that will be used for successive jumps. It will be more precise than using the demux GET_TIME/GET_POSITION. Send 'on_seek' callback with a valid point when starting a new seek. This callback will be called with a NULL point once all seek requests are processed. UI have now the choice to update their time/position to the seeked value. This will fix the UI not updated when the seek is long to process. Refs #27383 Refs #28482
1ecb283c
-