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

Commit e72957e0 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add nullptr check before printing found device type" into sc-dev

parents c8a1676a 4069d5dc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2229,7 +2229,8 @@ status_t AudioPolicyManager::getInputForAttr(const audio_attributes_t *attr,
            // Prevent from storing invalid requested device id in clients
            requestedDeviceId = AUDIO_PORT_HANDLE_NONE;
            device = mEngine->getInputDeviceForAttributes(attributes, uid, &policyMix);
            ALOGV("%s found device type is 0x%X", __FUNCTION__, device->type());
            ALOGV_IF(device != nullptr, "%s found device type is 0x%X",
                __FUNCTION__, device->type());
        }
        if (device == nullptr) {
            ALOGW("getInputForAttr() could not find device for source %d", attributes.source);