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

Commit 32f18d82 authored by Surajit Podder's avatar Surajit Podder Committed by Steve Kondik
Browse files

libstagefright: Fix SDK compilation issues

Conditionally compile features dependent on
ENABLE_AV_ENHANCEMENT macro

Change-Id: I9fe63c0314be08ef2ac8261f8f19ed1e8b39f5d9
parent b273c020
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -452,6 +452,7 @@ status_t MediaCodecSource::initEncoder() {
        ExtendedStats::AutoProfile autoProfile(
                STATS_PROFILE_ALLOCATE_NODE(mIsVideo), mRecorderExtendedStats);

#ifdef ENABLE_AV_ENHANCEMENTS
        if (mIsVideo && (mFlags & OMXCodec::kHardwareCodecsOnly)) {
            Vector<OMXCodec::CodecNameAndQuirks> matchingCodecs;

@@ -469,6 +470,10 @@ status_t MediaCodecSource::initEncoder() {
            mEncoder = MediaCodec::CreateByType(
                    mCodecLooper, outputMIME.c_str(), true /* encoder */);
        }
#else
        mEncoder = MediaCodec::CreateByType(
                mCodecLooper, outputMIME.c_str(), true /* encoder */);
#endif
    }

    if (mEncoder == NULL) {