Esempio n. 1
0
inline BOOL Factory::GetRecordStatus(astring nIndex,BOOL &nStatus)
{
    CameraParam pParam;

    if (GetCameraParamByIdTryLock(pParam, nIndex) == FALSE)
    {
        return FALSE;
    }
    //if (pParam.m_Conf.data.conf.Recording == 1)
    {
        nStatus = TRUE;
    }//else
    {
        nStatus = FALSE;
    }
    return TRUE;
}
Esempio n. 2
0
inline BOOL StorFactory::GetRecordStatus(s32 nIndex,BOOL &nStatus)
{
    CameraParam pParam;
    if (nIndex <=0 || nIndex >= STOR_FACTORY_CAMERA_ID_MAX)
    {
        return FALSE;
    }
    if (GetCameraParamByIdTryLock(pParam, nIndex) == FALSE)
    {
        return FALSE;
    }
    if (pParam.m_Conf.data.conf.Recording == 1)
    {
        nStatus = TRUE;
    }else
    {
        nStatus = FALSE;
    }
    return TRUE;
}