diff --git a/src/pulsecore/memblockq.c b/src/pulsecore/memblockq.c index 4eeb4d6db..0c245d2b2 100644 --- a/src/pulsecore/memblockq.c +++ b/src/pulsecore/memblockq.c @@ -287,8 +287,7 @@ int pa_memblockq_push(pa_memblockq* bq, const pa_memchunk *uchunk) { pa_assert(uchunk->length > 0); pa_assert(uchunk->index + uchunk->length <= pa_memblock_get_length(uchunk->memblock)); - if (uchunk->length % bq->base) - return -1; + pa_assert_se(uchunk->length % bq->base == 0); if (!can_push(bq, uchunk->length)) return -1; diff --git a/src/pulsecore/memblockq.h b/src/pulsecore/memblockq.h index 83a54152f..88906ba4a 100644 --- a/src/pulsecore/memblockq.h +++ b/src/pulsecore/memblockq.h @@ -51,7 +51,7 @@ typedef struct pa_memblockq pa_memblockq; - ss: Sample spec describing the queue contents. Only multiples of the frame size as implied by the sample spec are - popped from the queue or should be pushed into it. + allowed into the queue or can be popped from it. - prebuf: If the queue runs empty wait until this many bytes are in queue again before passing the first byte out. If set