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 e1771d6f9ea37d8358b734951f017950375dccfd..87f7c5e3b4c3bf2c36e845414d4be78c40a50968 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();