소스 검색

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.
jp9000 10 년 전
부모
커밋
95f5a3c260
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      libobs/obs-source.c

+ 1 - 0
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