Merge pull request #1591 from exeldro/circlebuf

libobs: Fix circlebuf_pop_back returning front
This commit is contained in:
Jim 2018-12-27 03:47:42 -08:00 committed by GitHub
commit 1f44e06490
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -292,7 +292,7 @@ static inline void circlebuf_pop_front(struct circlebuf *cb, void *data,
static inline void circlebuf_pop_back(struct circlebuf *cb, void *data,
size_t size)
{
circlebuf_peek_front(cb, data, size);
circlebuf_peek_back(cb, data, size);
cb->size -= size;
if (!cb->size) {