[obs] remove useless advance operation

This commit is contained in:
Geoffrey McRae 2020-05-22 22:51:41 +10:00
parent 08062e3fc3
commit 94d383a8c1
2 changed files with 1 additions and 11 deletions

View File

@ -1 +1 @@
B2-rc1-8-g4441427943+1 B2-rc1-9-g08062e3fc3+1

View File

@ -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)