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

Commit 963b02f7 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "libaudioclient: Fix error handling in AudioEffect::set" am: fc2cea02

Change-Id: I8a1e2bbb235a2efbe132acf51895a5087903d4d7
parents 800c4f39 fc2cea02
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -144,11 +144,13 @@ status_t AudioEffect::set(const effect_uuid_t *type,
            &mStatus, &mId, &enabled);

    if (iEffect == 0 || (mStatus != NO_ERROR && mStatus != ALREADY_EXISTS)) {
        char typeBuffer[64], uuidBuffer[64];
        char typeBuffer[64] = {}, uuidBuffer[64] = {};
        guidToString(type, typeBuffer, sizeof(typeBuffer));
        guidToString(uuid, uuidBuffer, sizeof(uuidBuffer));
        ALOGE("set(): AudioFlinger could not create effect %s / %s, status: %d",
                typeBuffer, uuidBuffer, mStatus);
                type != nullptr ? typeBuffer : "NULL",
                uuid != nullptr ? uuidBuffer : "NULL",
                mStatus);
        if (iEffect == 0) {
            mStatus = NO_INIT;
        }