r = pCapabilityImpl->GetValue(L"Camera.Count", cameraCount);
SysTryReturn(NID_MEDIA, r == E_SUCCESS, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error has been occurred. Number of Camera was not obtained.");
- SysTryReturn(NID_MEDIA, camSel < cameraCount, E_DEVICE_UNAVAILABLE, E_DEVICE_UNAVAILABLE, "[E_DEVICE_UNAVAILABLE] The camSel(%d) is not available.", camSel);
+ SysTryReturn(NID_MEDIA, camSel < cameraCount, E_UNSUPPORTED_OPERATION, E_UNSUPPORTED_OPERATION, "[E_UNSUPPORTED_OPERATION] The camSel(%d) is not available.", camSel);
__selection = camSel;
// Get the _CameraCapability.
// Get the _CameraCoordinator
__pCoordinator = _CameraCoordinator::AddInstance(__deviceType);
r = GetLastResult();
+ // To do : return should be checked. (E_DEVICE_UNAVAILABLE or E_DEVICE_BUSY)
SysTryCatch(NID_MEDIA, __pCoordinator != null, , r, "[E_OBJ_NOT_FOUND] _CameraCoordinator instance is not available.");
// Add this to _CameraCoordinator