mirror of
https://github.com/openharmony/distributed_camera.git
synced 2026-08-26 18:46:38 -04:00
@@ -14,10 +14,10 @@
|
||||
*/
|
||||
|
||||
#include "dcamera_device.h"
|
||||
#include "anonymous_string.h"
|
||||
#include <iostream>
|
||||
#include <iterator>
|
||||
#include <sstream>
|
||||
#include "anonymous_string.h"
|
||||
#include "dcamera_host.h"
|
||||
#include "dcamera_provider.h"
|
||||
#include "dcamera_utils_tools.h"
|
||||
|
||||
@@ -140,7 +140,8 @@ DCamRetCode DCameraHost::AddDCameraDevice(const std::shared_ptr<DHBase> &dhBase,
|
||||
dCameraHostCallback_->OnCameraEvent(dCameraId, CameraEvent::CAMERA_EVENT_DEVICE_ADD);
|
||||
}
|
||||
|
||||
DHLOGI("DCameraHost::AddDCameraDevice, create dcamera device success, dCameraId: %s", GetAnonyString(dCameraId).c_str());
|
||||
DHLOGI("DCameraHost::AddDCameraDevice, create dcamera device success, dCameraId: %s",
|
||||
GetAnonyString(dCameraId).c_str());
|
||||
return DCamRetCode::SUCCESS;
|
||||
}
|
||||
|
||||
@@ -171,7 +172,8 @@ DCamRetCode DCameraHost::RemoveDCameraDevice(const std::shared_ptr<DHBase> &dhBa
|
||||
dCameraHostCallback_->OnCameraEvent(dCameraId, CameraEvent::CAMERA_EVENT_DEVICE_RMV);
|
||||
}
|
||||
|
||||
DHLOGI("DCameraHost::RemoveDCameraDevice, remove dcamera device success, dCameraId: %s", GetAnonyString(dCameraId).c_str());
|
||||
DHLOGI("DCameraHost::RemoveDCameraDevice, remove dcamera device success, dCameraId: %s",
|
||||
GetAnonyString(dCameraId).c_str());
|
||||
return DCamRetCode::SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -150,8 +150,8 @@ int32_t DCameraSourceController::ChannelNeg(std::shared_ptr<DCameraChannelInfo>&
|
||||
GetAnonyString(devId).c_str(), GetAnonyString(dhId).c_str());
|
||||
return ret;
|
||||
}
|
||||
DHLOGD("DCameraSourceController ChannelNeg devId: %s, dhId: %s channelNegCommand: %s", GetAnonyString(devId).c_str(),
|
||||
GetAnonyString(dhId).c_str(), cmd.command_.c_str());
|
||||
DHLOGD("DCameraSourceController ChannelNeg devId: %s, dhId: %s channelNegCommand: %s",
|
||||
GetAnonyString(devId).c_str(),GetAnonyString(dhId).c_str(), cmd.command_.c_str());
|
||||
ret = camSinkSrv->ChannelNeg(dhId, jsonStr);
|
||||
if (ret != DCAMERA_OK) {
|
||||
DHLOGE("DCameraSourceController ChannelNeg rpc failed ret: %d, devId: %s, dhId: %s", ret,
|
||||
|
||||
Reference in New Issue
Block a user