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:
Lennart Poettering 2004-06-14 18:38:50 +00:00
parent edfad835cb
commit c8cf0c1ce9
8 changed files with 28 additions and 21 deletions

View file

@ -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;
}