Ver código fonte

obs-qsv11: Disable texture encoder on linux

After adding proper adapter enumeration the linux code ends up entering
the texture encoding paths, but these paths are not correctly
implemented on linux yet.

fixes #10221
Kurt Kartaltepe 1 ano atrás
pai
commit
e1b4c026df
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5 0
      plugins/obs-qsv11/obs-qsv11.c

+ 5 - 0
plugins/obs-qsv11/obs-qsv11.c

@@ -983,6 +983,11 @@ static void *obs_qsv_create_tex(enum qsv_codec codec, obs_data_t *settings,
 	struct obs_video_info ovi;
 	obs_get_video_info(&ovi);
 
+#if !defined(_WIN32)
+	blog(LOG_INFO, ">>> fall back to non-texture sharing on this platform");
+	return obs_encoder_create_rerouted(encoder, (const char *)fallback_id);
+#endif
+
 	if (!adapters[ovi.adapter].is_intel) {
 		blog(LOG_INFO,
 		     ">>> app not on intel GPU, fall back to old qsv encoder");