libobs: Fix circlebuf_pop_back returning front

This commit is contained in:
Exeldro 2018-12-27 09:28:49 +01:00
parent c9612983e6
commit a0a0ca73c1

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, static inline void circlebuf_pop_back(struct circlebuf *cb, void *data,
size_t size) size_t size)
{ {
circlebuf_peek_front(cb, data, size); circlebuf_peek_back(cb, data, size);
cb->size -= size; cb->size -= size;
if (!cb->size) { if (!cb->size) {