From 8f8ebab71273c3e8c45ab7bf75e9279d1ad290fb Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 28 Jan 2020 01:04:46 +1100 Subject: [PATCH] [c-host] respect the full queue --- LGMP | 2 +- c-host/src/app.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/LGMP b/LGMP index 006c16d6..cf0a8aa0 160000 --- a/LGMP +++ b/LGMP @@ -1 +1 @@ -Subproject commit 006c16d6265b18276700a1c07833ce51543ea4c7 +Subproject commit cf0a8aa09864363b7bbf4d51584417cf4fe0f7be diff --git a/c-host/src/app.c b/c-host/src/app.c index 70fbd426..d13cb03f 100644 --- a/c-host/src/app.c +++ b/c-host/src/app.c @@ -197,7 +197,10 @@ static int frameThread(void * opaque) /* we post and then get the frame, this is intentional! */ if ((status = lgmpHostQueuePost(app.frameQueue, 0, app.frameMemory[app.frameIndex])) != LGMP_OK) + { DEBUG_ERROR("%s", lgmpStatusString(status)); + continue; + } app.iface->getFrame(fb); } DEBUG_INFO("Frame thread stopped");