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

Commit 5a832f87 authored by Andreas Huber's avatar Andreas Huber
Browse files

Use proper number of video buffers to be acquired simultaneously from

SurfaceMediaSource, this should match the number of encoder input buffers.

Change-Id: Ibeb102337fd23698c5321c63dd3cb00b93e632b0
parent bdde5f88
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -785,8 +785,7 @@ status_t WifiDisplaySource::PlaybackSession::addVideoSource() {
    }

    // Add one reference to account for the serializer.
    // Add another two for unknown reasons.
    err = source->setMaxAcquiredBufferCount(15);  // XXX numInputBuffers + 2);
    err = source->setMaxAcquiredBufferCount(numInputBuffers);
    CHECK_EQ(err, (status_t)OK);

    mBufferQueue = source->getBufferQueue();