mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-18 08:56:40 -05:00
a bunch of fixes
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@10 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
edfad835cb
commit
c8cf0c1ce9
8 changed files with 28 additions and 21 deletions
|
|
@ -46,7 +46,7 @@ void memblockq_free(struct memblockq* bq) {
|
|||
|
||||
void memblockq_push(struct memblockq* bq, struct memchunk *chunk, size_t delta) {
|
||||
struct memblock_list *q;
|
||||
assert(bq && chunk && chunk->memblock && chunk->index);
|
||||
assert(bq && chunk && chunk->memblock && chunk->length);
|
||||
|
||||
q = malloc(sizeof(struct memblock_list));
|
||||
assert(q);
|
||||
|
|
@ -152,5 +152,5 @@ void memblockq_empty(struct memblockq *bq) {
|
|||
int memblockq_is_empty(struct memblockq *bq) {
|
||||
assert(bq);
|
||||
|
||||
return bq->total_length >= bq->base;
|
||||
return bq->total_length < bq->base;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue