From 7187c1b6d421124694fbcafa16394b8750d3aa82 Mon Sep 17 00:00:00 2001 From: Palana Date: Wed, 8 Jul 2015 14:25:07 +0200 Subject: [PATCH] libobs: Move video_sleep call --- libobs/obs-video.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libobs/obs-video.c b/libobs/obs-video.c index 52b670a0c..0a70e1310 100644 --- a/libobs/obs-video.c +++ b/libobs/obs-video.c @@ -530,7 +530,7 @@ static inline void video_sleep(struct obs_core_video *video, sizeof(vframe_info)); } -static inline void output_frame(uint64_t *cur_time, uint64_t interval) +static inline void output_frame(void) { struct obs_core_video *video = &obs->video; int cur_texture = video->cur_texture; @@ -557,8 +557,6 @@ static inline void output_frame(uint64_t *cur_time, uint64_t interval) if (++video->cur_texture == NUM_TEXTURES) video->cur_texture = 0; - - video_sleep(video, cur_time, interval); } void *obs_video_thread(void *param) @@ -575,7 +573,9 @@ void *obs_video_thread(void *param) render_displays(); - output_frame(&obs->video.video_time, interval); + output_frame(); + + video_sleep(&obs->video, &obs->video.video_time, interval); } UNUSED_PARAMETER(param); -- GitLab