From 0010b0ff27858fd17df87f853209d06f9cc4cf13 Mon Sep 17 00:00:00 2001 From: baoxy92 Date: Thu, 18 Apr 2024 07:15:36 +0000 Subject: [PATCH] update frameworks/c/drm_capi/native_mediakeysystem.cpp. Signed-off-by: baoxy92 --- frameworks/c/drm_capi/native_mediakeysystem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frameworks/c/drm_capi/native_mediakeysystem.cpp b/frameworks/c/drm_capi/native_mediakeysystem.cpp index ad8d036a..890fe18f 100644 --- a/frameworks/c/drm_capi/native_mediakeysystem.cpp +++ b/frameworks/c/drm_capi/native_mediakeysystem.cpp @@ -93,7 +93,8 @@ Drm_ErrCode OH_MediaKeySystem_GetMediaKeySystems(DRM_MediaKeySystemDescription * int32_t ret = fatory->GetMediaKeySystemName(keySystemNames); DRM_CHECK_AND_RETURN_RET_LOG((*count >= keySystemNames.size()), DRM_ERR_INVALID_VAL, "MediaKeySystemNapi GetMediaKeySystemName call Failed!"); int32_t times = 0; - DRM_CHECK_AND_RETURN_RET_LOG((ret == DRM_ERR_OK), DRM_ERR_INVALID_VAL, "MediaKeySystemNapi GetMediaKeySystemName call Failed!"); + DRM_CHECK_AND_RETURN_RET_LOG((ret == DRM_ERR_OK), DRM_ERR_INVALID_VAL, + "MediaKeySystemNapi GetMediaKeySystemName call Failed!"); for (auto it = keySystemNames.begin(); it != keySystemNames.end(); it++) { if (it->first.size() != 0) { ret = memcpy_s(description[times].name, it->first.size(), it->first.c_str(), it->first.size());