Files
ladybird/Libraries/LibMedia/PlaybackManager.cpp
Zaggy1024 f13a26d68e LibMedia: Only update durations from data providers if it increases
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.
2026-02-27 17:02:12 +01:00

11 KiB