mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-20 05:01:51 -04:00
Merge pull request #1712 from jpark37/highest-fps
win-dshow: Fix "Highest FPS" algorithm
This commit is contained in:
1 file changed
+6
-6
@@ -671,12 +671,12 @@ static inline bool CapsMatch(const VideoInfo &info, F&& f, Fs ... fs)
|
||||
template <typename ... F>
|
||||
static bool CapsMatch(const VideoDevice &dev, F ... fs)
|
||||
{
|
||||
auto matcher = [&](const VideoInfo &info)
|
||||
{
|
||||
return CapsMatch(info, fs ...);
|
||||
};
|
||||
|
||||
return any_of(begin(dev.caps), end(dev.caps), matcher);
|
||||
// no early exit, trigger all side effects.
|
||||
bool match = false;
|
||||
for (const VideoInfo &info : dev.caps)
|
||||
if (CapsMatch(info, fs ...))
|
||||
match = true;
|
||||
return match;
|
||||
}
|
||||
|
||||
static inline bool MatcherMatchVideoFormat(VideoFormat format,
|
||||
|
||||
Reference in new issue
Block a user