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

Commit 708fdc1f authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix arguments checking in AudioSystem::canBeSpatialized" am: 07b03bd0

parents 8e517718 07b03bd0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2272,6 +2272,9 @@ status_t AudioSystem::canBeSpatialized(const audio_attributes_t *attr,
                                    const AudioDeviceTypeAddrVector &devices,
                                    bool *canBeSpatialized) {
    const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
    if (canBeSpatialized == nullptr) {
        return BAD_VALUE;
    }
    if (aps == 0) {
        return PERMISSION_DENIED;
    }