From 02cfa2bba0ccee4da86a1bf7fe6d26985cc73b96 Mon Sep 17 00:00:00 2001 From: hobbycao Date: Sun, 27 Nov 2022 17:17:01 +0800 Subject: [PATCH] fix: distributed camera bug when camera framework don't cancel capture Signed-off-by: hobbycao --- .../hdi_service/src/dstream_operator/dstream_operator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distributed_camera/hdi_service/src/dstream_operator/dstream_operator.cpp b/distributed_camera/hdi_service/src/dstream_operator/dstream_operator.cpp index e1771d6f9e..87f7c5e3b4 100644 --- a/distributed_camera/hdi_service/src/dstream_operator/dstream_operator.cpp +++ b/distributed_camera/hdi_service/src/dstream_operator/dstream_operator.cpp @@ -700,11 +700,11 @@ void DStreamOperator::Release() DHLOGI("DStreamOperator::Release, begin release stream operator."); std::vector streamIds = GetStreamIds(); + SetCapturing(false); ReleaseStreams(streamIds); if (latestStreamSetting_) { latestStreamSetting_ = nullptr; } - SetCapturing(false); { std::lock_guard lockStream(halStreamLock_); halStreamMap_.clear(); -- Gitee