|
@@ -136,6 +136,7 @@ CMediaControllerEntity::CMediaControllerEntity(): m_capture(NULL), m_salesaudio_
|
|
|
#ifdef RVC_OS_WIN
|
|
|
#else
|
|
|
m_PhotoSaveDir = "";
|
|
|
+ m_bPostCapInfo = false;
|
|
|
#endif
|
|
|
#endif
|
|
|
}
|
|
@@ -2185,6 +2186,17 @@ void CMediaControllerEntity::HandleStopCameraCapture()
|
|
|
DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("Stop Save EnvCam Photo failed.");
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+void CMediaControllerEntity::SetPostCapInfoFlag(bool bpostcapinfo)
|
|
|
+{
|
|
|
+ m_bPostCapInfo = bpostcapinfo;
|
|
|
+}
|
|
|
+
|
|
|
+bool CMediaControllerEntity::GetPostCapInfoFlag()
|
|
|
+{
|
|
|
+ return m_bPostCapInfo;
|
|
|
+}
|
|
|
+
|
|
|
#endif
|
|
|
#endif
|
|
|
|
|
@@ -2416,7 +2428,10 @@ void MediaServiceSession::Handle_TurnOnCamera(SpReqAnsContext<MediaService_TurnO
|
|
|
#else
|
|
|
#ifdef RVC_OS_WIN
|
|
|
#else
|
|
|
- m_pEntity->GetFunction()->SetTimer(RVC_CAMERA_CAP_PROCESS, m_pEntity, 5 * 1000);
|
|
|
+ if (ctx->Req.bPostCapInfo) {
|
|
|
+ m_pEntity->GetFunction()->SetTimer(RVC_CAMERA_CAP_PROCESS, m_pEntity, 5 * 1000);
|
|
|
+ m_pEntity->SetPostCapInfoFlag(true);
|
|
|
+ }
|
|
|
#endif
|
|
|
#endif
|
|
|
|
|
@@ -2430,7 +2445,10 @@ void MediaServiceSession::Handle_TurnOffCamera(SpReqAnsContext<MediaService_Turn
|
|
|
#else
|
|
|
#ifdef RVC_OS_WIN
|
|
|
#else
|
|
|
- m_pEntity->GetFunction()->KillTimer(RVC_CAMERA_CAP_PROCESS);
|
|
|
+ if (m_pEntity->GetPostCapInfoFlag()) {
|
|
|
+ m_pEntity->GetFunction()->KillTimer(RVC_CAMERA_CAP_PROCESS);
|
|
|
+ m_pEntity->SetPostCapInfoFlag(false);
|
|
|
+ }
|
|
|
#endif
|
|
|
#endif
|
|
|
ErrorCodeEnum CamRet = m_pEntity->StopAllCameras();
|