32 if (other ==
nullptr)
return false;
33 if (mDrmInfo.
systemUUID != other->mDrmInfo.systemUUID)
return false;
34 if (mDrmInfo.
mediaFormat != other->mDrmInfo.mediaFormat)
return false;
35 if (
ocdmSystemId() != other->ocdmSystemId())
return false;
38 std::vector<uint8_t> thisKeyId;
41 std::vector<uint8_t> otherKeyId;
42 other->getKey(otherKeyId);
43 std::map<int, std::vector<uint8_t>> otherKeyIds;
44 other->getKeys(otherKeyIds);
45 std::vector<std::vector<uint8_t>> keyIdVector;
46 if(otherKeyIds.empty())
48 keyIdVector.push_back(otherKeyId);
52 for(
auto& keyId : otherKeyIds)
54 keyIdVector.push_back(keyId.second);
58 if (!keyIdVector.empty() && (keyIdVector.end() == std::find(keyIdVector.begin(), keyIdVector.end(), thisKeyId)))
return false;