mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-18 01:15:46 +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) {
|
void RtpaCleanupQueue(PRTP_AUDIO_QUEUE queue) {
|
||||||
while (queue->blockHead != NULL) {
|
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);
|
reed_solomon_release(queue->rs);
|
||||||
queue->rs = NULL;
|
queue->rs = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user