Browse Source

obs-qsv11: Ensure default devices are Intel devices

Kurt Kartaltepe 2 years ago
parent
commit
543be8cf29
1 changed files with 2 additions and 2 deletions
  1. 2 2
      plugins/obs-qsv11/common_utils_linux.cpp

+ 2 - 2
plugins/obs-qsv11/common_utils_linux.cpp

@@ -348,11 +348,11 @@ void check_adapters(struct adapter_info *adapters, size_t *adapter_count)
 			if (adapter->is_intel && default_h264_device == nullptr)
 				default_h264_device = strdup(full_path.array);
 
-			if (adapter->supports_av1 &&
+			if (adapter->is_intel && adapter->supports_av1 &&
 			    default_av1_device == nullptr)
 				default_av1_device = strdup(full_path.array);
 
-			if (adapter->supports_hevc &&
+			if (adapter->is_intel && adapter->supports_hevc &&
 			    default_hevc_device == nullptr)
 				default_hevc_device = strdup(full_path.array);