diff --git a/frameworks/native/audiocapturer/src/audio_capturer.cpp b/frameworks/native/audiocapturer/src/audio_capturer.cpp index ee6a0bc9e4cf01dd38dd3ff1346561fe7cf63e13..4e2a79b880a63b9736af028ab17b792591bedbf0 100644 --- a/frameworks/native/audiocapturer/src/audio_capturer.cpp +++ b/frameworks/native/audiocapturer/src/audio_capturer.cpp @@ -1440,7 +1440,7 @@ int32_t AudioCapturerPrivate::SetSwitchInfo(IAudioStream::SwitchInfo info, std:: int32_t res = audioStream->SetAudioStreamInfo(info.params, capturerProxyObj_); CHECK_AND_RETURN_RET_LOG(res == SUCCESS, ERROR, "SetAudioStreamInfo failed"); audioStream->SetCaptureMode(info.captureMode); - callbackLoopTid_ = audioStream_->GetCallbackLoopTid(); + callbackLoopTid_ = audioStream->GetCallbackLoopTid(); // set callback if ((info.renderPositionCb != nullptr) && (info.frameMarkPosition > 0)) {