mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-10 17:56:06 +00:00
Eliminate a copy and allocation for each incoming video packet
This commit is contained in:
@@ -126,8 +126,8 @@ static void ReceiveThreadProc(void* context) {
|
||||
// The packet queue now has packets ready
|
||||
buffer = NULL;
|
||||
while ((queueEntry = RtpfGetQueuedPacket(&rtpQueue)) != NULL) {
|
||||
// queueRtpPacket takes ownership of the packet
|
||||
queueRtpPacket(queueEntry);
|
||||
free(queueEntry->packet);
|
||||
}
|
||||
}
|
||||
else if (queueStatus == RTPF_RET_QUEUED_NOTHING_READY) {
|
||||
|
||||
Reference in New Issue
Block a user