Skip to content

Instantly share code, notes, and snippets.

@rationalsa
Created November 2, 2021 00:24
Show Gist options
  • Save rationalsa/00a71a35be7550cb23f6c6c85a7750e0 to your computer and use it in GitHub Desktop.
Save rationalsa/00a71a35be7550cb23f6c6c85a7750e0 to your computer and use it in GitHub Desktop.
diff --git a/libobs/obs-source.c b/libobs/obs-source.c
index ce88b8219..1ef1ce2a0 100644
--- a/libobs/obs-source.c
+++ b/libobs/obs-source.c
@@ -2878,6 +2878,7 @@ cache_video(struct obs_source *source, const struct obs_source_frame *frame)
}
if (!available) {
+ free_async_cache(source);
source->last_frame_ts = 0;
pthread_mutex_unlock(&source->async_mutex);
return NULL;
--
2.33.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment