mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-06 08:56:02 +08:00
only skip assert and force start if OMX_ErrorInsufficientResources
This commit is contained in:
@@ -330,10 +330,14 @@ 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);
|
||||
}
|
||||
// TODO: Investigate the insufficient memory issue in prebuilts, we force quit Qt UI, and trigger fast restart for now
|
||||
if (err == OMX_ErrorInsufficientResources) {
|
||||
qApp->exit(18);
|
||||
watchdog_kick(0);
|
||||
} else {
|
||||
assert(err == OMX_ErrorNone);
|
||||
}
|
||||
// assert(err == OMX_ErrorNone); // TODO: Investigate the insufficient memory issue in prebuilts
|
||||
// printf("handle: %p\n", this->handle);
|
||||
|
||||
// setup input port
|
||||
|
||||
Reference in New Issue
Block a user