From 95f5a3c2607b79fb624f7088ea3b619098b91ca8 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Fri, 27 Mar 2015 10:03:47 -0700 Subject: [PATCH] libobs: Clear current async frame if cache freed If the cache is freed the current async frame will of course become invalid, so make sure it's set to null if the cache is freed. --- libobs/obs-source.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libobs/obs-source.c b/libobs/obs-source.c index d107103b2..609fe7d7f 100644 --- a/libobs/obs-source.c +++ b/libobs/obs-source.c @@ -1627,6 +1627,7 @@ static inline void free_async_cache(struct obs_source *source) da_resize(source->async_cache, 0); da_resize(source->async_frames, 0); + source->cur_async_frame = NULL; } #define MAX_UNUSED_FRAME_DURATION 5