mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-17 08:55:48 +00:00
Fix FEC queue state assert firing on shutdown
This commit is contained in:
parent
e3d4f4e91f
commit
e9fd544ff4
@ -102,10 +102,12 @@ static void freeFecBlockHead(PRTP_AUDIO_QUEUE queue) {
|
||||
|
||||
void RtpaCleanupQueue(PRTP_AUDIO_QUEUE queue) {
|
||||
while (queue->blockHead != NULL) {
|
||||
freeFecBlockHead(queue);
|
||||
PRTPA_FEC_BLOCK block = queue->blockHead;
|
||||
queue->blockHead = block->next;
|
||||
free(block);
|
||||
}
|
||||
|
||||
LC_ASSERT(queue->blockTail == NULL);
|
||||
queue->blockTail = NULL;
|
||||
|
||||
reed_solomon_release(queue->rs);
|
||||
queue->rs = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user