From caed4b34cba9480e9aa3cb440c498c8a774a4c89 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Fri, 12 Apr 2024 00:25:57 -0400 Subject: [PATCH] Do this if error is triggered --- selfdrive/ui/qt/screenrecorder/omx_encoder.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/screenrecorder/omx_encoder.cc b/selfdrive/ui/qt/screenrecorder/omx_encoder.cc index cbcb2989e4..0fde1f1ae8 100644 --- a/selfdrive/ui/qt/screenrecorder/omx_encoder.cc +++ b/selfdrive/ui/qt/screenrecorder/omx_encoder.cc @@ -328,8 +328,9 @@ OmxEncoder::OmxEncoder(const char* path, int width, int height, int fps, int bit int err = OMX_GetHandle(&this->handle, component, this, &omx_callbacks); if (err != OMX_ErrorNone) { LOGE("error getting codec: %x", err); + qApp->exit(18); + watchdog_kick(0); } - watchdog_kick(0); // assert(err == OMX_ErrorNone); // TODO: Investigate the insufficient memory issue in prebuilts // printf("handle: %p\n", this->handle);