drm/aes/aamp_aes.cpp
/**
 * @brief Restore key state post cleanup of audio/video TrackState in case DRM data is persisted
 */
@brief Restore key state post cleanup of audio/video TrackState in case DRM data is persisted
@brief Restore key state post cleanup of audio / video TrackState in case DRM data is persisted
void AesDec::RestoreKeyState()
{
	pthread_mutex_lock(&mMutex);
	if (mDrmState == eDRM_KEY_FLUSH)
	{
		mDrmState = mPrevDrmState;
	}
	pthread_mutex_unlock(&mMutex);
}
void AesDec :: RestoreKeyState ( ) { pthread_mutex_lock ( & mMutex ) ; if ( mDrmState == eDRM_KEY_FLUSH ) { mDrmState = mPrevDrmState ; } pthread_mutex_unlock ( & mMutex ) ; }
@brief Restore key state post cleanup of audio/video TrackState in case DRM data is persisted
@brief Restore key state post cleanup of audio / video TrackState in case DRM data is persisted
//In case somebody overwritten mDrmState before restore operation, keep that state