瀏覽代碼

libobs: Fix GPU scaling using the main mix

Exeldro 1 年之前
父節點
當前提交
c4c2f5b382
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libobs/obs-encoder.c

+ 1 - 1
libobs/obs-encoder.c

@@ -276,7 +276,7 @@ static void maybe_set_up_gpu_rescale(struct obs_encoder *encoder)
 		struct obs_core_video_mix *current = obs->video.mixes.array[i];
 		const struct video_output_info *voi =
 			video_output_get_info(current->video);
-		if (current->view != &obs->data.main_view)
+		if (current->view != current_mix->view)
 			continue;
 
 		if (voi->width != encoder->scaled_width ||