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

Commit f8ba34cd authored by Arne Coucheron's avatar Arne Coucheron Committed by Bruno Martins
Browse files

stagefright: omx: Don't signal dataspace change on legacy QCOM

This isn't supported in legacy media HAL, and causes things like
screen recording and wifi display to fail when setting up the encoder.

Change-Id: Icb3f7b7dfefcfd72939037241568f28c01fc11ed
parent 206a948e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -816,11 +816,13 @@ status_t GraphicBufferSource::submitBuffer_l(const VideoBuffer &item) {
        return UNKNOWN_ERROR;
    }

#ifndef QCOM_BSP_LEGACY
    if ((android_dataspace)item.mDataspace != mLastDataspace) {
        onDataspaceChanged_l(
                item.mDataspace,
                (android_pixel_format)item.mBuffer->getGraphicBuffer()->format);
    }
#endif

    std::shared_ptr<AcquiredBuffer> buffer = item.mBuffer;
    // use a GraphicBuffer for now as component is using GraphicBuffers to hold references
+8 −0
Original line number Diff line number Diff line
@@ -72,6 +72,14 @@ cc_library_shared {
        "-Wno-documentation",
    ],

    product_variables: {
        lineage: {
            uses_qcom_bsp_legacy: {
                cppflags: ["-DQCOM_BSP_LEGACY"],
            },
        },
    },

    sanitize: {
        misc_undefined: [
            "signed-integer-overflow",