瀏覽代碼

libobs: Do not skip async frames unless one has been selected

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

+ 2 - 1
libobs/obs-source.c

@@ -4256,7 +4256,8 @@ static bool ready_async_frame(obs_source_t *source, uint64_t sys_time)
 		 * helps smooth out async rendering to frame boundaries.  In
 		 * other words, tries to keep the framerate as smooth as
 		 * possible */
-		if ((source->last_frame_ts - next_frame->timestamp) < 2000000)
+		if (frame &&
+		    (source->last_frame_ts - next_frame->timestamp) < 2000000)
 			break;
 
 		if (frame)