mirror of
https://github.com/openharmony/multimedia_drm_framework.git
synced 2026-07-20 20:25:05 -04:00
update frameworks/c/drm_capi/native_mediakeysystem.cpp.
Signed-off-by: baoxy92 <baoxianyue@hisilicon.com>
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user