Skip to content

Commit

Permalink
cleanup visionipc when recovering from fault in dmonitoringd and logg…
Browse files Browse the repository at this point in the history
…erd (commaai#1402)
  • Loading branch information
deanlee authored Apr 20, 2020
1 parent 3ebb116 commit 2928c53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions selfdrive/loggerd/loggerd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
1 change: 1 addition & 0 deletions selfdrive/modeld/dmonitoringmodeld.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2928c53

Please sign in to comment.