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

Commit 31da944c authored by Emilian Peev's avatar Emilian Peev Committed by android-build-merger
Browse files

Merge "Camera: Bump camera splitter output slots" into pi-dev am: 63660701

am: 819484f7

Change-Id: Ic6fe5056f4bb8ab211fde7743e6d5ec04cbb7188
parents 6c6da4b3 819484f7
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -212,7 +212,11 @@ status_t Camera3StreamSplitter::addOutputLocked(size_t surfaceId, const sp<Surfa

    SP_LOGV("%s: Consumer wants %d buffers, Producer wants %zu", __FUNCTION__,
            maxConsumerBuffers, mMaxHalBuffers);
    size_t totalBufferCount = maxConsumerBuffers + mMaxHalBuffers;
    // The output slot count requirement can change depending on the current amount
    // of outputs and incoming buffer consumption rate. To avoid any issues with
    // insufficient slots, set their count to the maximum supported. The output
    // surface buffer allocation is disabled so no real buffers will get allocated.
    size_t totalBufferCount = BufferQueue::NUM_BUFFER_SLOTS;
    res = native_window_set_buffer_count(outputQueue.get(),
            totalBufferCount);
    if (res != OK) {