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.
This commit is contained in:
jp9000
2014-12-31 01:45:39 -08:00
parent a7d2450d8e
commit 11dd7912ce

View File

@@ -395,6 +395,15 @@ static void obs_free_video(void)
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;
}
}