drm/ave/drm.cpp
/**
 * @brief Set information required for decryption
 *
 * @param[in] aamp     AAMP instance to be associated with this decryptor
 * @param[in] drmInfo  DRM information required to decrypt
 *
 * @retval eDRM_SUCCESS on success
 */
@brief Set information required for decryption
@param[in] aamp     AAMP instance to be associated with this decryptor
@param[in] drmInfo  DRM information required to decrypt

@retval eDRM_SUCCESS on success
@brief Set information required for decryption @param [ in ] aamp AAMP instance to be associated with this decryptor @param [ in ] drmInfo DRM information required to decrypt @retval eDRM_SUCCESS on success
DrmReturn AveDrm::SetDecryptInfo( PrivateInstanceAAMP *aamp, const DrmInfo *drmInfo)
{
	DrmReturn err = eDRM_ERROR;
	pthread_mutex_lock(&mutex);
	mpAamp = aamp;
	if (m_pDrmAdapter)
	{
		m_pDrmAdapter->SetDecryptInfo(drmInfo);
		err = eDRM_SUCCESS;
	}
	else
	{
		logprintf("AveDrm::%s:%d[%p] ERROR -  NULL m_pDrmAdapter\n", __FUNCTION__, __LINE__, this);
	}
	pthread_mutex_unlock(&mutex);
	return eDRM_SUCCESS;
}
DrmReturn AveDrm :: SetDecryptInfo ( PrivateInstanceAAMP * aamp , const DrmInfo * drmInfo ) { DrmReturn err = eDRM_ERROR ; pthread_mutex_lock ( & mutex ) ; mpAamp = aamp ; if ( m_pDrmAdapter ) { m_pDrmAdapter -> SetDecryptInfo ( drmInfo ) ; err = eDRM_SUCCESS ; } else { logprintf ( " \n " , __FUNCTION__ , __LINE__ , this ) ; } pthread_mutex_unlock ( & mutex ) ; return eDRM_SUCCESS ; }
@brief Set information required for decryption
 @param[in] aamp     AAMP instance to be associated with this decryptor
 @param[in] drmInfo  DRM information required to decrypt
@brief Set information required for decryption @param [ in ] aamp AAMP instance to be associated with this decryptor @param [ in ] drmInfo DRM information required to decrypt