Fix testOEMCryptoVersion
Merge from go/wvgerrit/24882: The result of crypto_session.GetApiVersion is misinterpreted. Test: ANDROID_BUILD_TOP= -gts/tools/gts-tradefed run gts -m GtsMediaTestCases --test com.google.android.media.gts. MediaDrmTest#testOemCryptoVersion Test: ANDROID_BUILD_TOP= -gts/tools/gts-tradefed run gts -m GtsMediaTestCases --test com.google.android.media.gts. MediaDrmTest bug: 36728950 Change-Id: I72a05608f778fa81689013d3b231010b71329ea1
This commit is contained in:
@@ -626,7 +626,7 @@ CdmResponseType CdmEngine::QueryStatus(SecurityLevel security_level,
|
||||
*query_response = max_sessions_stream.str();
|
||||
} else if (query_token == QUERY_KEY_OEMCRYPTO_API_VERSION) {
|
||||
uint32_t api_version;
|
||||
if (crypto_session.GetApiVersion(&api_version)) {
|
||||
if (!crypto_session.GetApiVersion(&api_version)) {
|
||||
LOGW("CdmEngine::QueryStatus: GetApiVersion failed");
|
||||
return UNKNOWN_ERROR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user