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

Commit 0ae7c72c authored by Sungtak Lee's avatar Sungtak Lee
Browse files

Set dequeue timeout of surface on ACodec configuration

Set dequeue timeout of surface to -1 during ACodec configuration.

Test: atest CtsMediaTestCases:VideoEncoderTest#testGoogH264SurfQCIF

Bug: 132699263
Change-Id: Id28a16d72f38be89edb0bbebebf91dfe915d36e0
parent 35236f40
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1138,6 +1138,8 @@ status_t ACodec::configureOutputBuffersFromNativeWindow(
        return err;
    }

    static_cast<Surface *>(mNativeWindow.get())->setDequeueTimeout(-1);

    // Exits here for tunneled video playback codecs -- i.e. skips native window
    // buffer allocation step as this is managed by the tunneled OMX omponent
    // itself and explicitly sets def.nBufferCountActual to 0.