Commit 3ef42ce
committed
Fix currentTime and sliderPos not reaching end of media
The last decoded frame's PTS is always slightly before the total
duration (duration = last_frame_pts + frame_duration). Snap currentTime
and progress to their final values when EOF is reached so the UI
correctly shows 100% completion.
Fixes #1381 parent 017bcfe commit 3ef42ce
1 file changed
Lines changed: 7 additions & 0 deletions
File tree
- mediaplayer/src/jvmMain/kotlin/io/github/kdroidfilter/composemediaplayer/windows
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
703 | 703 | | |
704 | 704 | | |
705 | 705 | | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
706 | 713 | | |
707 | 714 | | |
708 | 715 | | |
| |||
0 commit comments