Browse Source

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".
Friedhelm Birth 2 years ago
parent
commit
b3b5e7eae8
1 changed files with 3 additions and 3 deletions
  1. 3 3
      plugins/win-dshow/win-dshow.cpp

+ 3 - 3
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)