Remove error code INVALID_QUERY_STATUS

CdmEngine::QueryStatus was mapping all error codes
returned from crypto_session.Open to INVALID_QUERY_STATUS
which caused important failure information to be lost.
The GTS DrmSessionManagerTest test was failing as a
result, because session reclaiming no longer worked.

merge of http://go/wvgerrit/44800

bug:72705384
test:gts DrmSessionManagerTest

Change-Id: Id404a18b8f66cf6137b69f6b4e1bdd7004706a0c
(cherry picked from commit 6aad0f77cb)
This commit is contained in:
Jeff Tinker
2018-03-05 14:47:51 -08:00
parent 66977c3cab
commit 6a4abc15fe
6 changed files with 2 additions and 8 deletions

View File

@@ -489,7 +489,7 @@ CdmResponseType CdmEngine::QueryStatus(SecurityLevel security_level,
status,
security_level);
if (status != NO_ERROR)
return INVALID_QUERY_STATUS;
return status;
if (!query_response) {
LOGE("CdmEngine::QueryStatus: no query response destination");