drm/ave/drm.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 AveDrm::RestoreKeyState()
{
	pthread_mutex_lock(&mutex);
	if (mDrmState == eDRM_KEY_FLUSH)
	{
		mDrmState = mPrevDrmState;
	}
	pthread_mutex_unlock(&mutex);
}
void AveDrm :: RestoreKeyState ( ) { pthread_mutex_lock ( & mutex ) ; if ( mDrmState == eDRM_KEY_FLUSH ) { mDrmState = mPrevDrmState ; } pthread_mutex_unlock ( & mutex ) ; }
@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