From 3c23e536988eaf2895649b09135b3b5db161142a Mon Sep 17 00:00:00 2001 From: sunchao106 Date: Thu, 11 Sep 2025 15:45:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=B0=E5=A2=9E=E9=9F=B3?= =?UTF-8?q?=E9=A2=91=E9=87=8A=E6=94=BE=E5=BC=82=E5=B8=B8=E9=98=B2=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: sunchao106 --- .../moving_photo/src/avcodec/audio_capturer_session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dynamic_libs/moving_photo/src/avcodec/audio_capturer_session.cpp b/dynamic_libs/moving_photo/src/avcodec/audio_capturer_session.cpp index f95e29797..c429b5a9d 100644 --- a/dynamic_libs/moving_photo/src/avcodec/audio_capturer_session.cpp +++ b/dynamic_libs/moving_photo/src/avcodec/audio_capturer_session.cpp @@ -203,11 +203,11 @@ void AudioCapturerSession::Release() { CAMERA_SYNC_TRACE; std::unique_lock lock(audioCapturerMutex_); + CHECK_PRINT_ILOG(!audioCapturer_, "current audioCapturer is nullptr"); if (audioCapturer_ != nullptr) { MEDIA_INFO_LOG("Audio capture Release enter"); audioCapturer_->Release(); } - audioCapturer_ = nullptr; MEDIA_INFO_LOG("Audio capture released"); } -- Gitee