提交 11dd7912 编写于 作者: J jp9000

libobs: Fix bug with frame output handling

The boolean variables which stored whether frames have been
rendered/downloaded/converted/etc were not being reset when video
restarted, causing frames to not be sent in the correct order whenever
video was reset.  This could lead to minor desync of video/audio.
上级 a7d2450d
...@@ -395,6 +395,15 @@ static void obs_free_video(void) ...@@ -395,6 +395,15 @@ static void obs_free_video(void)
circlebuf_free(&video->timestamp_buffer); circlebuf_free(&video->timestamp_buffer);
memset(&video->textures_rendered, 0,
sizeof(video->textures_rendered));
memset(&video->textures_output, 0,
sizeof(video->textures_output));
memset(&video->textures_copied, 0,
sizeof(video->textures_copied));
memset(&video->textures_converted, 0,
sizeof(video->textures_converted));
video->cur_texture = 0; video->cur_texture = 0;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册