Snap for 4765094 from 5b169b1722 to pi-release
Change-Id: Id6c1ffeb5c68ab814cb5f74b319ab2e2feff3a47
This commit is contained in:
@@ -72,6 +72,7 @@ CdmResponseType WvContentDecryptionModule::CloseSession(
|
|||||||
CdmEngine* cdm_engine = GetCdmForSessionId(session_id);
|
CdmEngine* cdm_engine = GetCdmForSessionId(session_id);
|
||||||
// TODO(rfrias): Avoid reusing the error codes from CdmEngine.
|
// TODO(rfrias): Avoid reusing the error codes from CdmEngine.
|
||||||
if (!cdm_engine) return SESSION_NOT_FOUND_1;
|
if (!cdm_engine) return SESSION_NOT_FOUND_1;
|
||||||
|
AutoLock auto_lock(cdms_lock_);
|
||||||
CdmResponseType sts = cdm_engine->CloseSession(session_id);
|
CdmResponseType sts = cdm_engine->CloseSession(session_id);
|
||||||
cdm_engine->GetMetrics()->cdm_engine_close_session_.Increment(sts);
|
cdm_engine->GetMetrics()->cdm_engine_close_session_.Increment(sts);
|
||||||
if (sts == NO_ERROR) {
|
if (sts == NO_ERROR) {
|
||||||
|
|||||||
Reference in New Issue
Block a user