Commit 823c5e23 authored by Michael Smith's avatar Michael Smith

Fix buffer-queue length handling (was missing from refbuf_queue_add, which it

used as well as refbuf_queue_insert).

svn path=/trunk/icecast/; revision=4397
parent 4e140fb1
......@@ -63,10 +63,12 @@ void refbuf_queue_add(refbuf_queue_t **queue, refbuf_t *refbuf)
if (*queue == NULL) {
*queue = item;
(*queue)->total_length = item->len;
} else {
node = *queue;
while (node->next) node = node->next;
node->next = item;
(*queue)->total_length += item->len;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment