diff options
Diffstat (limited to 'test/camera/statemachine.cpp')
-rw-r--r-- | test/camera/statemachine.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/camera/statemachine.cpp b/test/camera/statemachine.cpp index 84d2a6fa..12d5e0e1 100644 --- a/test/camera/statemachine.cpp +++ b/test/camera/statemachine.cpp @@ -211,10 +211,8 @@ protected: return TestFail; Stream *stream = *camera_->streams().begin(); - BufferPool &pool = stream->bufferPool(); - Buffer &buffer = pool.buffers().front(); - std::map<Stream *, Buffer *> map = { { stream, &buffer } }; - if (request->setBuffers(map)) + std::unique_ptr<Buffer> buffer = stream->createBuffer(0); + if (request->addBuffer(std::move(buffer))) return TestFail; if (camera_->queueRequest(request)) |