Pārlūkot izejas kodu

win-dshow: Use unbuffered by default for MJPEG

Due to the recent change of using FFmpeg to decode MJPEG, MJPEG was
getting included in the delayed device check.  This fixes that so that
it doesn't.  MJPEG can decode in real time.
jp9000 6 gadi atpakaļ
vecāks
revīzija
deaeb5e632
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      plugins/win-dshow/win-dshow.cpp

+ 1 - 1
plugins/win-dshow/win-dshow.cpp

@@ -806,7 +806,7 @@ static long long GetOBSFPS();
 
 static inline bool IsDelayedDevice(const VideoConfig &config)
 {
-	return config.format >= VideoFormat::MJPEG ||
+	return config.format > VideoFormat::MJPEG ||
 	       wstrstri(config.name.c_str(), L"elgato") != NULL ||
 	       wstrstri(config.name.c_str(), L"stream engine") != NULL;
 }