mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 18:12:05 +08:00
camerad: fix thumbnail cnt (#20236)
old-commit-hash: d3a71dcf65722b80b6f08acb4a371b138436a495
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user