mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-22 02:36:00 +08:00
6e0b730044
Instead of using a callback to "capture" the image next time the filter function is called, do it the other way around: on every filter invocation, create a reference to the image, and return it if a screenshot is requested. This also fixes the 1-frame delay when taking screenshots with the filter. This also allows simplifying screenshot.c.