aboutsummaryrefslogtreecommitdiff
path: root/components/V4L2DecodeComponent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'components/V4L2DecodeComponent.cpp')
-rw-r--r--components/V4L2DecodeComponent.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/components/V4L2DecodeComponent.cpp b/components/V4L2DecodeComponent.cpp
index 8a86466..0f59d79 100644
--- a/components/V4L2DecodeComponent.cpp
+++ b/components/V4L2DecodeComponent.cpp
@@ -275,12 +275,7 @@ void V4L2DecodeComponent::getVideoFramePool(std::unique_ptr<VideoFramePool>* poo
return;
}
- // TODO(b/160307705): Consider to remove the dependency of C2VdaBqBlockPool.
- if (blockPool->getAllocatorId() == C2PlatformAllocatorStore::BUFFERQUEUE) {
- reinterpret_cast<C2VdaBqBlockPool*>(blockPool.get())->requestNewBufferSet(numBuffers);
- }
-
- *pool = VideoFramePool::Create(std::move(blockPool), size, pixelFormat, mIsSecure,
+ *pool = VideoFramePool::Create(std::move(blockPool), numBuffers, size, pixelFormat, mIsSecure,
mDecoderTaskRunner);
}