mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
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
This commit is contained in:
parent
4e140fb14b
commit
823c5e23c0
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user