Update to OrbbecSDK version to 2.6.3

This commit is contained in:
slz
2025-12-25 19:25:24 +08:00
parent 25d1a4d516
commit 0c491543af
12 changed files with 46 additions and 45 deletions
@@ -160,7 +160,9 @@ public:
void setDeviceChangedCallback(DeviceChangedCallback callback) {
std::lock_guard<std::mutex> lock(legacyCallbackMtx_);
// remove the last callback first
unregisterDeviceChangedCallback(legacyCallbackId_);
if(legacyCallbackId_ != INVALID_CALLBACK_ID) {
unregisterDeviceChangedCallback(legacyCallbackId_);
}
// register the new callback
legacyCallbackId_ = registerDeviceChangedCallback(callback);
}