mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -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) {
|
if (*queue == NULL) {
|
||||||
*queue = item;
|
*queue = item;
|
||||||
|
(*queue)->total_length = item->len;
|
||||||
} else {
|
} else {
|
||||||
node = *queue;
|
node = *queue;
|
||||||
while (node->next) node = node->next;
|
while (node->next) node = node->next;
|
||||||
node->next = item;
|
node->next = item;
|
||||||
|
(*queue)->total_length += item->len;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user