mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed small issue where group audio would jumble up sometimes at start of stream.
This commit is contained in:
parent
3a6d93f067
commit
1ef2092bcc
|
@ -90,7 +90,7 @@ static int queue(Group_JitterBuffer *q, Group_Audio_Packet *pk)
|
||||||
|
|
||||||
if ((uint32_t)(sequnum - q->bottom) > q->size) {
|
if ((uint32_t)(sequnum - q->bottom) > q->size) {
|
||||||
clear_queue(q);
|
clear_queue(q);
|
||||||
q->bottom = sequnum;
|
q->bottom = sequnum - q->capacity;
|
||||||
q->queue[num] = pk;
|
q->queue[num] = pk;
|
||||||
q->top = sequnum + 1;
|
q->top = sequnum + 1;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user