mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-13 18:36:38 +02:00
Previously, we would call the frame end callbacks every time a frame was decoded. However, the only use case for the callback was to update the media duration. Instead, cache the duration in the data providers, and only invoke the callback (renamed to duration_change_handler) when the duration actually increases. Hopefully this will reduce wasted work, and possibly some allocations as well.
11 KiB
11 KiB