libobs: Fix cache overflowing (memory leak)

Fixes a bug where all frames in the cache would get marked as 'in use',
this causing it to continually allocate new frames continually.
This commit is contained in:
jp9000 2015-01-06 14:29:40 -08:00
parent 733398e660
commit 12d149bd3a

View File

@ -1392,6 +1392,7 @@ static inline struct obs_source_frame *cache_video(struct obs_source *source,
if (!af->used) {
new_frame = af->frame;
af->used = true;
break;
}
}