encoderd: use const reference for VisionBuf access (#33621)

use const reference for VisionBuf access
pull/33624/head
Dean Lee 7 months ago committed by GitHub
parent 6fff91d91e
commit 2b37624dee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      system/loggerd/encoderd.cc

@ -59,7 +59,7 @@ void encoder_thread(EncoderdState *s, const LogCameraInfo &cam_info) {
// init encoders // init encoders
if (encoders.empty()) { if (encoders.empty()) {
VisionBuf buf_info = vipc_client.buffers[0]; const VisionBuf &buf_info = vipc_client.buffers[0];
LOGW("encoder %s init %zux%zu", cam_info.thread_name, buf_info.width, buf_info.height); LOGW("encoder %s init %zux%zu", cam_info.thread_name, buf_info.width, buf_info.height);
assert(buf_info.width > 0 && buf_info.height > 0); assert(buf_info.width > 0 && buf_info.height > 0);

Loading…
Cancel
Save