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

!87 fix camera app blue issue when stop recording

Merge pull request !87 from starfish/master
......@@ -564,7 +564,12 @@ void SampleCameraStateMng::SetStop(int s)
return;
}
cam_->StopLoopingCapture();
if (s == 0) { /* only stop recorder */
cam_->StopLoopingCapture(FRAME_CONFIG_RECORD);
} else {
cam_->StopLoopingCapture(-1);
}
if (gRecordSta_ == MEDIA_STATE_START) {
if (s) {
recorder_->Stop(false);
......
......@@ -333,7 +333,7 @@ public:
cout << "Camera is not ready." << endl;
return;
}
cam_->StopLoopingCapture();
cam_->StopLoopingCapture(-1);
if (recordState_ == STATE_RUNNING) {
CloseRecorder();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册