From dc3e89e65c9ad5b54da5ddd78fefc5e073dc8c6d Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 21 May 2020 09:37:20 +1000 Subject: [PATCH] [obs] add delay to fix startup this delay is needed to allow the host clock to change so we can validate the session. --- VERSION | 2 +- obs/lg.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index cfe9c881..f9a41f13 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -B1-202-g3b47a4113f+1 \ No newline at end of file +B1-203-g240d0ff263+1 \ No newline at end of file diff --git a/obs/lg.c b/obs/lg.c index dcb37506..5cc47bd7 100644 --- a/obs/lg.c +++ b/obs/lg.c @@ -175,8 +175,10 @@ static void lgUpdate(void * data, obs_data_t * settings) != LGMP_OK) return; - if (lgmpClientSessionInit(this->lgmp, &udataSize, (uint8_t **)&udata) - != LGMP_OK) + usleep(200000); + + if (lgmpClientSessionInit(this->lgmp, &udataSize, (uint8_t **)&udata) + != LGMP_OK) return; if (udataSize != sizeof(KVMFR) ||