Skip to content

Commit

Permalink
libobs: Do not skip async frames unless one has been selected
Browse files Browse the repository at this point in the history
  • Loading branch information
derrod authored and Lain-B committed Sep 17, 2023
1 parent 7a695dd commit 62500b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libobs/obs-source.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 62500b5

Please sign in to comment.