summaryrefslogtreecommitdiff
path: root/bluetooth/audio/aidl/default/A2dpSoftwareAudioProvider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bluetooth/audio/aidl/default/A2dpSoftwareAudioProvider.cpp')
-rw-r--r--bluetooth/audio/aidl/default/A2dpSoftwareAudioProvider.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/bluetooth/audio/aidl/default/A2dpSoftwareAudioProvider.cpp b/bluetooth/audio/aidl/default/A2dpSoftwareAudioProvider.cpp
index 7e4907409e..5a413e07a8 100644
--- a/bluetooth/audio/aidl/default/A2dpSoftwareAudioProvider.cpp
+++ b/bluetooth/audio/aidl/default/A2dpSoftwareAudioProvider.cpp
@@ -88,8 +88,9 @@ ndk::ScopedAStatus A2dpSoftwareAudioProvider::onSessionReady(
return ndk::ScopedAStatus::fromExceptionCode(EX_ILLEGAL_ARGUMENT);
}
*_aidl_return = data_mq_->dupeDesc();
+ auto desc = data_mq_->dupeDesc();
BluetoothAudioSessionReport::OnSessionStarted(session_type_, stack_iface_,
- _aidl_return, *audio_config_);
+ &desc, *audio_config_);
return ndk::ScopedAStatus::ok();
}