[xiph-cvs] cvs commit: icecast/src refbuf.c
Michael Smith
msmith at xiph.org
Mon Mar 3 05:04:34 PST 2003
msmith 03/03/03 08:04:34
Modified: src refbuf.c
Log:
Fix buffer-queue length handling (was missing from refbuf_queue_add, which it
used as well as refbuf_queue_insert).
Revision Changes Path
1.4 +2 -0 icecast/src/refbuf.c
Index: refbuf.c
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/refbuf.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- refbuf.c 24 Feb 2003 14:56:49 -0000 1.3
+++ refbuf.c 3 Mar 2003 13:04:34 -0000 1.4
@@ -63,10 +63,12 @@
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;
}
}
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list