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

Commit f8cc94a9 authored by Arne Coucheron's avatar Arne Coucheron Committed by Michael Bestas
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 fc32a94d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
cc_defaults {
    name: "libstagefright_bufferqueue-defaults",
    defaults: ["stagefright_qcom_legacy_defaults"],
    double_loadable: true,

    srcs: [
+2 −0
Original line number Diff line number Diff line
@@ -891,11 +891,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