camerad: fix thumbnail cnt (#20236)

old-commit-hash: d3a71dcf65722b80b6f08acb4a371b138436a495
This commit is contained in:
Dean Lee
2021-03-04 12:14:37 +08:00
committed by GitHub
parent a899ac0de6
commit 9faffa817b
+3 -1
View File
@@ -342,7 +342,8 @@ void *processing_thread(MultiCameraState *cameras, CameraState *cs, process_thre
}
set_thread_name(thread_name);
for (int cnt = 0; !do_exit; cnt++) {
uint32_t cnt = 0;
while (!do_exit) {
if (!cs->buf.acquire()) continue;
callback(cameras, cs, cnt);
@@ -352,6 +353,7 @@ void *processing_thread(MultiCameraState *cameras, CameraState *cs, process_thre
publish_thumbnail(cameras->pm, &(cs->buf));
}
cs->buf.release();
++cnt;
}
return NULL;
}