[c-host] respect the full queue

This commit is contained in:
Geoffrey McRae 2020-01-28 01:04:46 +11:00
parent 418149c9a6
commit 8f8ebab712
2 changed files with 4 additions and 1 deletions

2
LGMP

@ -1 +1 @@
Subproject commit 006c16d6265b18276700a1c07833ce51543ea4c7 Subproject commit cf0a8aa09864363b7bbf4d51584417cf4fe0f7be

View File

@ -197,7 +197,10 @@ static int frameThread(void * opaque)
/* we post and then get the frame, this is intentional! */ /* we post and then get the frame, this is intentional! */
if ((status = lgmpHostQueuePost(app.frameQueue, 0, app.frameMemory[app.frameIndex])) != LGMP_OK) if ((status = lgmpHostQueuePost(app.frameQueue, 0, app.frameMemory[app.frameIndex])) != LGMP_OK)
{
DEBUG_ERROR("%s", lgmpStatusString(status)); DEBUG_ERROR("%s", lgmpStatusString(status));
continue;
}
app.iface->getFrame(fb); app.iface->getFrame(fb);
} }
DEBUG_INFO("Frame thread stopped"); DEBUG_INFO("Frame thread stopped");