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

Commit aa07766f authored by Arne Coucheron's avatar Arne Coucheron
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 to fail when setting up the encoder.

Change-Id: Icb3f7b7dfefcfd72939037241568f28c01fc11ed
parent 25de41f6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -564,6 +564,7 @@ void GraphicBufferSource::onDataSpaceChanged_l(
                aspects.mTransfer, asString(aspects.mTransfer),
                err, asString(err));

#ifndef QCOM_BSP_LEGACY
        // signal client that the dataspace has changed; this will update the output format
        // TODO: we should tie this to an output buffer somehow, and signal the change
        // just before the output buffer is returned to the client, but there are many
@@ -573,6 +574,7 @@ void GraphicBufferSource::onDataSpaceChanged_l(
                OMX_EventDataSpaceChanged, dataSpace,
                (aspects.mRange << 24) | (aspects.mPrimaries << 16)
                        | (aspects.mMatrixCoeffs << 8) | aspects.mTransfer);
#endif
    }
}