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

This commit is contained in:
Dean Lee
2020-04-21 04:15:11 +08:00
committed by GitHub
parent 3ebb1161e5
commit 2928c53e4f
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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;
}
+1
View File
@@ -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);