未验证 提交 289e3ab9 编写于 作者: O openharmony_ci 提交者: Gitee

!134 【轻量级 PR】:安全静态告警修改-monthly

Merge pull request !134 from 马利/N/A
......@@ -95,9 +95,11 @@ void SampleCameraStateMng::OnCreated(Camera &c)
std::unique_lock<std::mutex> lock(g_mutex);
printf("Sample recv OnCreate camera.\n");
auto config = CameraConfig::CreateCameraConfig();
if (config != nullptr) {
config->SetFrameStateCallback(&fsCb_, &eventHdlr_);
if (config == nullptr) {
cout << "New object failed." << endl;
return;
}
config->SetFrameStateCallback(&fsCb_, &eventHdlr_);
c.Configure(*config);
cam_ = &c;
g_cv.notify_all();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册