{
SysTryReturn(NID_MEDIA, pUserData, , E_SYSTEM, "[E_SYSTEM] A system error has been occurred. pUserData is null.");
_PlayerImpl *pPlayerImpl = (_PlayerImpl *)pUserData;
- if ((((errorCode == ::PLAYER_ERROR_DRM_EXPIRED) ||
+ if (
+ ((errorCode == ::PLAYER_ERROR_DRM_EXPIRED) ||
(errorCode == ::PLAYER_ERROR_DRM_NO_LICENSE) ||
(errorCode == ::PLAYER_ERROR_DRM_FUTURE_USE) ||
(errorCode == ::PLAYER_ERROR_NOT_SUPPORTED_FILE) ||
(errorCode == ::PLAYER_ERROR_INVALID_URI) ||
(errorCode == ::PLAYER_ERROR_NO_SUCH_FILE) ||
(errorCode == ::PLAYER_ERROR_CONNECTION_FAILED) ||
- (errorCode == ::PLAYER_ERROR_DRM_NOT_PERMITTED)) &&
- (pPlayerImpl->__isAsync == true)) && ((pPlayerImpl->__currentState == PLAYER_STATE_INITIALIZED) || pPlayerImpl->__currentState == PLAYER_STATE_CLOSED))
+ (errorCode == ::PLAYER_ERROR_DRM_NOT_PERMITTED))
+ &&
+ (pPlayerImpl->__isAsync == true)
+ &&
+ (pPlayerImpl->__currentState == PLAYER_STATE_OPENING)
+ )
{
pPlayerImpl->HandlePlayerPrepared(errorCode);
}