mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[client/obs] update to use new LGMP init api
This commit is contained in:
8
obs/lg.c
8
obs/lg.c
@@ -171,8 +171,12 @@ static void lgUpdate(void * data, obs_data_t * settings)
|
||||
uint32_t udataSize;
|
||||
KVMFR * udata;
|
||||
|
||||
if (lgmpClientInit(this->shmDev.mem, this->shmDev.size, &this->lgmp,
|
||||
&udataSize, (uint8_t **)&udata) != LGMP_OK)
|
||||
if (lgmpClientInit(this->shmDev.mem, this->shmDev.size, &this->lgmp)
|
||||
!= LGMP_OK)
|
||||
return;
|
||||
|
||||
if (lgmpClientSessionInit(this->lgmp, &udataSize, (uint8_t **)&udata)
|
||||
!= LGMP_OK)
|
||||
return;
|
||||
|
||||
if (udataSize != sizeof(KVMFR) ||
|
||||
|
Reference in New Issue
Block a user