summaryrefslogtreecommitdiff
path: root/src/qcam
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcam')
-rw-r--r--src/qcam/main_window.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qcam/main_window.cpp b/src/qcam/main_window.cpp
index 6ecf30e3..7023e115 100644
--- a/src/qcam/main_window.cpp
+++ b/src/qcam/main_window.cpp
@@ -140,9 +140,8 @@ int MainWindow::startCapture()
return ret;
}
- 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) {
std::cerr << "Can't create request" << std::endl;