mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-17 14:21:30 +00:00
Improve debug output during frame loss
This commit is contained in:
+1
-1
@@ -528,7 +528,7 @@ static void requestInvalidateReferenceFrames(void) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Limelog("Invalidate reference frame request sent\n");
|
Limelog("Invalidate reference frame request sent (%d to %d)\n", (int)payload[0], (int)payload[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void invalidateRefFramesFunc(void* context) {
|
static void invalidateRefFramesFunc(void* context) {
|
||||||
|
|||||||
@@ -236,6 +236,14 @@ int RtpfAddPacket(PRTP_FEC_QUEUE queue, PRTP_PACKET packet, PRTPFEC_QUEUE_ENTRY
|
|||||||
// Reinitialize the queue if it's empty after a frame delivery or
|
// Reinitialize the queue if it's empty after a frame delivery or
|
||||||
// if we can't finish a frame before receiving the next one.
|
// if we can't finish a frame before receiving the next one.
|
||||||
if (queue->bufferSize == 0 || queue->currentFrameNumber != nvPacket->frameIndex) {
|
if (queue->bufferSize == 0 || queue->currentFrameNumber != nvPacket->frameIndex) {
|
||||||
|
if (queue->currentFrameNumber != nvPacket->frameIndex && queue->bufferSize != 0) {
|
||||||
|
Limelog("Unrecoverable frame %d: %d+%d=%d received < %d needed\n",
|
||||||
|
queue->currentFrameNumber, queue->receivedBufferDataPackets,
|
||||||
|
queue->bufferSize - queue->receivedBufferDataPackets,
|
||||||
|
queue->bufferSize,
|
||||||
|
queue->bufferDataPackets);
|
||||||
|
}
|
||||||
|
|
||||||
queue->currentFrameNumber = nvPacket->frameIndex;
|
queue->currentFrameNumber = nvPacket->frameIndex;
|
||||||
queue->nextRtpSequenceNumber = queue->bufferHighestSequenceNumber;
|
queue->nextRtpSequenceNumber = queue->bufferHighestSequenceNumber;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user