]> git.nihav.org Git - nihav-player.git/commit
videoplayer: (hopefully) fix near-end seek issues
authorKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 10 Feb 2026 17:38:00 +0000 (18:38 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 10 Feb 2026 17:38:00 +0000 (18:38 +0100)
commit57f57a5860b3fd34d0422e334676ee17b49da452
treea53bfd6db069ba1f97eab6c284a225600940fe93
parent01e90073b52d24133bca7acf52177cdccf9be85c
videoplayer: (hopefully) fix near-end seek issues

The original design was simple: get last frames, end decoding.
Unfortunately, this did not take into account that user may want to rewind
video at the last moment. In such case playback would either end or lock up
waiting for the video decoding thread (that has finished by this point)
to send a reply.

Hence the need to reset "at the end" state in various places of the player.
videoplayer/src/main.rs
videoplayer/src/videodec.rs