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

Commit e925cc2e authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

stagefright: limit 7x27a meta mode check to QCOM_HARDWARE

This was breaking builds for non-qcom devices

Change-Id: I3ac4e23d1790185f1d3de13d6262d7e046fab5aa
parent 27072931
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1559,12 +1559,14 @@ status_t StagefrightRecorder::setupVideoEncoder(
        LOGW("Camera source supports metadata mode, create OMXCodec for metadata");
        encoder_flags |= OMXCodec::kHardwareCodecsOnly;
        encoder_flags |= OMXCodec::kStoreMetaDataInVideoBuffers;
#ifdef QCOM_HARDWARE
        if (property_get("ro.board.platform", value, "0")
            && (!strncmp(value, "msm7627a", sizeof("msm7627a") - 1) ||
                !strncmp(value, "msm7x27a", sizeof("msm7x27a") - 1))) {
            LOGW("msm7627 family of chipsets supports, only one buffer at a time");
            encoder_flags |= OMXCodec::kOnlySubmitOneInputBufferAtOneTime;
        }
#endif
    }

    // Do not wait for all the input buffers to become available.