Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f784df7c authored by Pawan Wagh's avatar Pawan Wagh Committed by Gerrit Code Review
Browse files

Merge "Fixing null deference crash in audio service"

parents ae32aaee 6f57cd97
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -953,7 +953,7 @@ ndk::ScopedAStatus Module::setMicMute(bool in_mute) {
}
}


ndk::ScopedAStatus Module::getMicrophones(std::vector<MicrophoneInfo>* _aidl_return) {
ndk::ScopedAStatus Module::getMicrophones(std::vector<MicrophoneInfo>* _aidl_return) {
    *_aidl_return = mConfig->microphones;
    *_aidl_return = getConfig().microphones;
    LOG(DEBUG) << __func__ << ": returning " << ::android::internal::ToString(*_aidl_return);
    LOG(DEBUG) << __func__ << ": returning " << ::android::internal::ToString(*_aidl_return);
    return ndk::ScopedAStatus::ok();
    return ndk::ScopedAStatus::ok();
}
}