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

Commit 290faa49 authored by Sungtak Lee's avatar Sungtak Lee Committed by Android (Google) Code Review
Browse files

Merge "CCodec: Do not crash when there is no OMX service" into tm-dev

parents be55f493 47dcb48b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1526,6 +1526,9 @@ sp<PersistentSurface> CCodec::CreateOmxInputSurface() {
    using namespace android::hardware::graphics::bufferqueue::V1_0::utils;
    typedef android::hardware::media::omx::V1_0::Status OmxStatus;
    android::sp<IOmx> omx = IOmx::getService();
    if (omx == nullptr) {
        return nullptr;
    }
    typedef android::hardware::graphics::bufferqueue::V1_0::
            IGraphicBufferProducer HGraphicBufferProducer;
    typedef android::hardware::media::omx::V1_0::