mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-23 06:52:07 +08:00
cleanup visionipc when recovering from fault in dmonitoringd and loggerd (#1402)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user