mirror of
https://github.com/openharmony/distributed_camera.git
synced 2026-07-20 19:57:22 -04:00
!64 【分布式相机】修复分布式相机使能/去使能通知失败问题
Merge pull request !64 from zhuxu/master
This commit is contained in:
+10
@@ -59,6 +59,11 @@ int32_t DCameraServiceStateListener::OnRegisterNotify(const std::string& devId,
|
||||
DHLOGE("DCameraServiceStateListener OnRegisterNotify OnNotifyRegResult failed: %d", ret);
|
||||
}
|
||||
}).detach();
|
||||
} else {
|
||||
int32_t ret = callbackProxy_->OnNotifyRegResult(devId, dhId, reqId, status, data);
|
||||
if (ret != DCAMERA_OK) {
|
||||
DHLOGE("DCameraServiceStateListener OnRegisterNotify OnNotifyRegResult failed: %d", ret);
|
||||
}
|
||||
}
|
||||
return DCAMERA_OK;
|
||||
}
|
||||
@@ -85,6 +90,11 @@ int32_t DCameraServiceStateListener::OnUnregisterNotify(const std::string& devId
|
||||
DHLOGE("DCameraServiceStateListener OnUnregisterNotify failed, ret: %d", ret);
|
||||
}
|
||||
}).detach();
|
||||
} else {
|
||||
int32_t ret = callbackProxy_->OnNotifyUnregResult(devId, dhId, reqId, status, data);
|
||||
if (ret != DCAMERA_OK) {
|
||||
DHLOGE("DCameraServiceStateListener OnUnregisterNotify failed, ret: %d", ret);
|
||||
}
|
||||
}
|
||||
|
||||
return DCAMERA_OK;
|
||||
|
||||
Reference in New Issue
Block a user