diff --git a/VERSION b/VERSION index f8d8eba7..94380469 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -B1-103-gf9d919bdbb+1 \ No newline at end of file +B1-104-gc7aa8871e4+1 \ No newline at end of file diff --git a/c-host/src/app.c b/c-host/src/app.c index 4250db89..01386042 100644 --- a/c-host/src/app.c +++ b/c-host/src/app.c @@ -107,13 +107,9 @@ static int frameThread(void * opaque) bool frameValid = false; bool repeatFrame = false; - int frameIndex = 0; CaptureFrame frame = { 0 }; const long pageSize = sysinfo_getPageSize(); - (void)frameIndex; - (void)repeatFrame; - while(app.running) { switch(app.iface->waitFrame(&frame)) @@ -164,8 +160,8 @@ static int frameThread(void * opaque) // we increment the index first so that if we need to repeat a frame // the index still points to the latest valid frame - if (frameIndex++ == LGMP_Q_FRAME_LEN) - frameIndex = 0; + if (app.frameIndex++ == LGMP_Q_FRAME_LEN) + app.frameIndex = 0; KVMFRFrame * fi = lgmpHostMemPtr(app.frameMemory[app.frameIndex]); switch(frame.format)