cleanup visionipc when recovering from fault in dmonitoringd and loggerd (#1402)

old-commit-hash: 2928c53e4f
commatwo_master
Dean Lee 5 years ago committed by GitHub
parent d47ca7f253
commit f01bf14ba4
  1. 1
      selfdrive/loggerd/loggerd.cc
  2. 1
      selfdrive/modeld/dmonitoringmodeld.cc

@ -168,6 +168,7 @@ void encoder_thread(bool is_streaming, bool raw_clips, bool front) {
VIPCBuf* buf = visionstream_get(&stream, &extra);
if (buf == NULL) {
LOG("visionstream get failed");
visionstream_destroy(&stream);
break;
}

@ -55,6 +55,7 @@ int main(int argc, char **argv) {
buf = visionstream_get(&stream, &extra);
if (buf == NULL) {
printf("visionstream get failed\n");
visionstream_destroy(&stream);
break;
}
//printf("frame_id: %d %dx%d\n", extra.frame_id, buf_info.width, buf_info.height);

Loading…
Cancel
Save