mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-06 07:36:12 -05:00
MatcherClosestFrameRateSelector updates best_match as a side effect of visiting every VideoInfo instance, but CapsMatch uses std::any_of, which will stop iterating prematurely on first match. This means that the highest FPS is not selected. This change switches to a for loop that doesn't exit early.