[common] kvmfr: add a new frameSerial field to the KVMFRFrame struct

This new field is used so that when a new client connects an already
connected client can identify any repeated frame that is sent and ignore
it.
This commit is contained in:
Geoffrey McRae committed 2021-07-25 13:46:48 +10:00
1 parent f4daa9f527
commit b39f38350f
3 files changed
+5 -2

No files matched your search

+2
View File
@@ -94,6 +94,7 @@ struct app
PLGMPMemory frameMemory[LGMP_Q_FRAME_LEN];
unsigned int frameIndex;
bool frameValid;
uint32_t frameSerial;
CaptureInterface * iface;
@@ -229,6 +230,7 @@ static bool sendFrame(void)
}
fi->formatVer = frame.formatVer;
fi->frameSerial = app.frameSerial++;
fi->width = frame.width;
fi->height = frame.height;
fi->realHeight = frame.realHeight;