提交 a292f3d7 编写于 作者: U unknown

fix camera app blue issue when exit

Signed-off-by: Nunknown <shaoyuan.zhang@huawei.com>
上级 84c67c57
......@@ -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.
先完成此消息的编辑!
想要评论请 注册