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

pull/1406/head
Dean Lee 5 years ago committed by GitHub
parent 3ebb1161e5
commit 2928c53e4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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