Explorar o código

obs-ffmpeg: Add NVIDIA Tesla NVENC support

MagicBear %!s(int64=3) %!d(string=hai) anos
pai
achega
f54f8ee714
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      plugins/obs-ffmpeg/obs-ffmpeg.c

+ 4 - 2
plugins/obs-ffmpeg/obs-ffmpeg.c

@@ -200,8 +200,10 @@ static bool nvenc_device_available(void)
 	while ((dirent = os_readdir(dir)) != NULL) {
 		int id;
 
-		if (get_id_from_sys(dirent->d_name, "class") !=
-		    0x030000) { // 0x030000 = VGA compatible controller
+		if (get_id_from_sys(dirent->d_name, "class") != 0x030000 &&
+		    get_id_from_sys(dirent->d_name, "class") !=
+			    0x030200) { // 0x030000 = VGA compatible controller
+					// 0x030200 = 3D controller
 			continue;
 		}