[client] don't skip the first frame if we do not yet have a frame

A frame serial of `0` is valid and will happen if either the host app
has just started, or the serial has overflowed.
This commit is contained in:
Geoffrey McRae 2021-07-25 15:09:48 +10:00
parent e35facbb15
commit 8c2a77e84e

View File

@ -499,7 +499,7 @@ int main_frameThread(void * unused)
// ignore any repeated frames, this happens when a new client connects to // ignore any repeated frames, this happens when a new client connects to
// the same host application. // the same host application.
if (frame->frameSerial == frameSerial) if (frame->frameSerial == frameSerial && g_state.formatValid)
{ {
lgmpClientMessageDone(queue); lgmpClientMessageDone(queue);
continue; continue;