mirror of
https://github.com/openharmony/multimedia_camera_lite.git
synced 2026-07-20 01:03:35 -04:00
!120 修改multimedia模块多处泄露函数地址问题_monthly分支
Merge pull request !120 from 黄建飞/cherry-pick-1678938804
This commit is contained in:
@@ -31,7 +31,7 @@ public:
|
||||
MEDIA_ERR_LOG("This config is in use, do not support config modify.");
|
||||
}
|
||||
if (callback == nullptr || handler == nullptr) {
|
||||
MEDIA_ERR_LOG("Invalid parameter.(callback=%p, handler=%p)", callback, handler);
|
||||
MEDIA_ERR_LOG("Invalid parameter.");
|
||||
}
|
||||
|
||||
callback_ = callback;
|
||||
|
||||
@@ -52,8 +52,8 @@ static BOOL Initialize(Service* service, Identity identity)
|
||||
}
|
||||
CameraService* example = (CameraService*)service;
|
||||
example->identity = identity;
|
||||
MEDIA_INFO_LOG("Initialize(%s)! Identity<%d, %d, %p>", Media::SERVICE_NAME,
|
||||
identity.serviceId, identity.featureId, identity.queueId);
|
||||
MEDIA_INFO_LOG("Initialize(%s)! Identity<%d, %d>", Media::SERVICE_NAME,
|
||||
identity.serviceId, identity.featureId);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -62,8 +62,8 @@ static BOOL MessageHandle(Service* service, Request* msg)
|
||||
if (service == nullptr || msg == nullptr) {
|
||||
return FALSE;
|
||||
}
|
||||
MEDIA_INFO_LOG("MessageHandle(%s)! Request<%d, %d, %p>",
|
||||
service->GetName(service), msg->msgId, msg->msgValue, msg->data);
|
||||
MEDIA_INFO_LOG("MessageHandle(%s)! Request<%d, %d>",
|
||||
service->GetName(service), msg->msgId, msg->msgValue);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user