summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/camera/capture.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/camera/capture.cpp b/test/camera/capture.cpp
index ff1cbd6c..e6bf7a8d 100644
--- a/test/camera/capture.cpp
+++ b/test/camera/capture.cpp
@@ -80,9 +80,8 @@ protected:
}
Stream *stream = cfg.stream();
- BufferPool &pool = stream->bufferPool();
std::vector<Request *> requests;
- for (unsigned int i = 0; i < pool.count(); ++i) {
+ for (unsigned int i = 0; i < cfg.bufferCount; ++i) {
Request *request = camera_->createRequest();
if (!request) {
cout << "Failed to create request" << endl;