From b3b5e7eae855f4bd7b58a6a7855bdc1f40d539c8 Mon Sep 17 00:00:00 2001 From: Friedhelm Birth <2387897+FBirth@users.noreply.github.com> Date: Tue, 28 Mar 2023 19:09:29 +0200 Subject: [PATCH] win-dshow: Change buffering for Elgato devices The default is now buffering disabled except for very old devices accessed through virtual capture filter "Elgato Game Capture HD". --- plugins/win-dshow/win-dshow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/win-dshow/win-dshow.cpp b/plugins/win-dshow/win-dshow.cpp index 81081e538..452e54b38 100644 --- a/plugins/win-dshow/win-dshow.cpp +++ b/plugins/win-dshow/win-dshow.cpp @@ -860,9 +860,9 @@ static long long GetOBSFPS(); static inline bool IsDelayedDevice(const VideoConfig &config) { return config.format > VideoFormat::MJPEG || - (wstrstri(config.name.c_str(), L"elgato") != NULL && - wstrstri(config.name.c_str(), L"facecam") == NULL) || - wstrstri(config.name.c_str(), L"stream engine") != NULL; + wstrstri(config.name.c_str(), L"elgato game capture hd") != + nullptr || + wstrstri(config.name.c_str(), L"stream engine") != nullptr; } static inline bool IsDecoupled(const VideoConfig &config)