mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 14:57:20 +00:00
[obs] remove useless advance operation
This commit is contained in:
parent
08062e3fc3
commit
94d383a8c1
10
obs/lg.c
10
obs/lg.c
@ -212,16 +212,6 @@ static void lgVideoTick(void * data, float seconds)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((status = lgmpClientAdvanceToLast(this->frameQueue)) != LGMP_OK)
|
|
||||||
{
|
|
||||||
if (status != LGMP_ERR_QUEUE_EMPTY)
|
|
||||||
{
|
|
||||||
os_sem_post(this->frameSem);
|
|
||||||
printf("lgmpClientAdvanceToLast: %s\n", lgmpStatusString(status));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((status = lgmpClientProcess(this->frameQueue, &msg)) != LGMP_OK)
|
if ((status = lgmpClientProcess(this->frameQueue, &msg)) != LGMP_OK)
|
||||||
{
|
{
|
||||||
if (status == LGMP_ERR_QUEUE_EMPTY)
|
if (status == LGMP_ERR_QUEUE_EMPTY)
|
||||||
|
Loading…
Reference in New Issue
Block a user