!84 camera blue screen problem fix

Merge pull request !84 from liubb_0516/master
This commit is contained in:
openharmony_ci
2022-05-16 03:28:39 +00:00
committed by Gitee
4 changed files with 5 additions and 2 deletions
@@ -55,7 +55,6 @@ private:
CallBackPara *para_ = nullptr;
SvcIdentity sid_;
int32_t ret_ = 0;
IpcObjectStub objectStub_;
};
} // namespace Media
} // namespace OHOS
@@ -53,7 +53,6 @@ private:
CallBackPara *para_ = nullptr;
uint8_t cameraModeNum = 0;
int32_t ret_ = 0;
IpcObjectStub objectStub_;
};
} // namespace Media
} // namespace OHOS
@@ -28,6 +28,8 @@
using namespace std;
namespace OHOS {
namespace Media {
static IpcObjectStub objectStub_;
CameraDeviceClient *CameraDeviceClient::GetInstance()
{
static CameraDeviceClient client;
@@ -216,6 +218,7 @@ void CameraDeviceClient::StopLoopingCapture(int32_t type)
return;
}
WriteString(&io, cameraId_.c_str());
WriteInt32(&io, type);
CallBackPara para = {};
para.funcId = CAMERA_SERVER_STOP_LOOPING_CAPTURE;
para.data = this;
@@ -26,6 +26,8 @@
using namespace std;
namespace OHOS {
namespace Media {
static IpcObjectStub objectStub_;
CameraServiceClient *CameraServiceClient::GetInstance()
{
static CameraServiceClient client;