On Mon Nov 25 00:37:21 2024 +0000, Brendan McGrath wrote:
Basically we just want to supply the latest sample that has a PTS prior to the current presentation timestamp. So we will: - supply no samples if neither sample has a PTS prior to the current presentation timestamp; - supply the first sample if the first sample has a PTS prior to the current presentation timestamp and the 2nd sample has a PTS after the current presentation timestamp (or there is no 2nd sample); or - supply the 2nd sample (and drop the 1st) if the 2nd sample has a PTS prior to the current presentation timestamp. I've now added a comment to the function. Why do we need to keep this pair of samples at all? Do we know from the tests that this sink always keeps two of them?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/5924#note_88934