summaryrefslogtreecommitdiffstats
path: root/polyp/memblockq.c
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/memblockq.c')
-rw-r--r--polyp/memblockq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/polyp/memblockq.c b/polyp/memblockq.c
index a79814be..59794d6c 100644
--- a/polyp/memblockq.c
+++ b/polyp/memblockq.c
@@ -149,9 +149,9 @@ int pa_memblockq_peek(struct pa_memblockq* bq, struct pa_memchunk *chunk) {
void pa_memblockq_drop(struct pa_memblockq *bq, const struct pa_memchunk *chunk, size_t length) {
assert(bq && chunk && length);
- if (!bq->blocks || memcmp(&bq->blocks->chunk, chunk, sizeof(struct pa_memchunk)))
+ if (!bq->blocks || memcmp(&bq->blocks->chunk, chunk, sizeof(struct pa_memchunk)))
return;
-
+
assert(length <= bq->blocks->chunk.length);
pa_memblockq_skip(bq, length);
}