update services/drm_service/server/src/key_session_service_callback_stub.cpp.

Signed-off-by: baoxy92 <baoxianyue@hisilicon.com>
This commit is contained in:
baoxy92
2024-04-29 16:03:50 +00:00
committed by Gitee
parent ecd008bad1
commit 508b5bee14
@@ -66,6 +66,8 @@ int32_t MediaKeySessionServiceCallbackStub::HandleSendEventKeyChanged(MessagePar
DRM_INFO_LOG("MediaKeySessionServiceCallbackStub HandleSendEventKeyChanged enter.");
std::map<std::vector<uint8_t>, MediaKeySessionKeyStatus> statusTable;
uint32_t mapSize = data.ReadUint32();
DRM_CHECK_AND_RETURN_RET_LOG(mapSize < DATA_MAX_LEN, DRM_MEMORY_ERROR,
"The size of event data is too large.");
for (uint32_t index = 0; index < mapSize; index++) {
std::vector<uint8_t> item;
uint32_t idSize = data.ReadUint32();