diff -r cd271b19d824 -r 8184f75a63d4 mmlibs/mmfw/src/Client/Utility/mmfclientutility.cpp --- a/mmlibs/mmfw/src/Client/Utility/mmfclientutility.cpp Tue Apr 27 18:12:22 2010 +0300 +++ b/mmlibs/mmfw/src/Client/Utility/mmfclientutility.cpp Tue May 11 17:37:08 2010 +0300 @@ -2287,73 +2287,9 @@ {//leaving as GetAttribute of CAF caused an error. User::Leave(error); } - if(!isDataProtected) - { - CleanupStack::PopAndDestroy(content); - return;//returning cause if data is not protected, we need not evaluate the type of rights. - } - - RArray agents; - TAgent drmAgent; - - CManager* manager = CManager::NewLC(); - CleanupClosePushL( agents ); - manager->ListAgentsL( agents ); - - for ( TInt i = 0; i < agents.Count(); i++ ) - { - if ( agents[i].Name().Compare( content->Agent().Name() ) == 0 ) - { - drmAgent = agents[i]; - break; - } - } - - CleanupStack::PopAndDestroy( &agents ); - RStreamablePtrArray infoArray; - CRightsManager* rightsManager = manager->CreateRightsManagerL(drmAgent); - CleanupStack::PushL(rightsManager); - - if(iFileName.Length()) - { - if(iUniqueId) - { - TVirtualPathPtr pathPtr(iFileName, *iUniqueId); - TRAP(error,rightsManager->ListRightsL(infoArray, pathPtr) ); - } - else - { - TRAP(error,rightsManager->ListRightsL(infoArray, iFileName ) ); - } - } - else if (iUseFileHandle && iOwnFileHandle) - { - if(iUniqueId) - { - TRAP(error,rightsManager->ListRightsL(infoArray, iFileHandle, *iUniqueId) ); - } - else - { - TRAP(error,rightsManager->ListRightsL(infoArray, iFileHandle, KNullDesC) ); - } - } - - if(error) - { - infoArray.Close(); - User::Leave(error); - } - TInt consumableRights = 0; - if(infoArray.Count() > 0) - consumableRights = (ContentAccess::ERightsTypeConsumable) & infoArray[0]->RightsType(); - - - CleanupStack::PopAndDestroy( rightsManager ); - infoArray.Close(); - CleanupStack::PopAndDestroy( manager ); CleanupStack::PopAndDestroy(content); - if(isDataProtected && !iHasDrmCapability && mode == EPlayback && !consumableRights) + if(isDataProtected && !iHasDrmCapability && mode == EPlayback) {//only when the Data is protected and client does not have the DRM capability, we need secure DRM process aIsSecureDrmProcess = ETrue; }