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

Commit f7005138 authored by Wonsik Kim's avatar Wonsik Kim
Browse files

stagefright: allow secure audio input buffer

Bug: 63343701
Test: adb shell am instrument -e size small -w 'android.media.cts/android.support.test.runner.AndroidJUnitRunner'
Change-Id: I64cae10d17ec7421ffdc60dd0aa202f6c74f83bf
parent f34e3f27
Loading
Loading
Loading
Loading
+8 −9
Original line number Diff line number Diff line
@@ -1861,7 +1861,7 @@ status_t ACodec::configureCodec(
            mFlags |= kFlagIsGrallocUsageProtected;
            mFlags |= kFlagPushBlankBuffersToNativeWindowOnShutdown;
        }

    }
    if (mFlags & kFlagIsSecure) {
        // use native_handles for secure input buffers
        err = setPortMode(kPortIndexInput, IOMX::kPortModePresetSecureBuffer);
@@ -1872,7 +1872,6 @@ status_t ACodec::configureCodec(
            err = OK; // ignore error for now
        }
    }
    }
    if (haveNativeWindow) {
        sp<ANativeWindow> nativeWindow =
            static_cast<ANativeWindow *>(static_cast<Surface *>(obj.get()));