summaryrefslogtreecommitdiff
path: root/src/qcam
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcam')
-rw-r--r--src/qcam/main_window.cpp4
-rw-r--r--src/qcam/main_window.h1
2 files changed, 2 insertions, 3 deletions
diff --git a/src/qcam/main_window.cpp b/src/qcam/main_window.cpp
index ee06d751..c91b8272 100644
--- a/src/qcam/main_window.cpp
+++ b/src/qcam/main_window.cpp
@@ -97,9 +97,9 @@ int MainWindow::startCapture()
{
int ret;
- config_ = camera_->streamConfiguration({ Stream::VideoRecording() });
+ config_ = camera_->generateConfiguration({ Stream::VideoRecording() });
Stream *stream = config_.front();
- ret = camera_->configureStreams(config_);
+ ret = camera_->configure(config_);
if (ret < 0) {
std::cout << "Failed to configure camera" << std::endl;
return ret;
diff --git a/src/qcam/main_window.h b/src/qcam/main_window.h
index 9b31da2b..143b5b08 100644
--- a/src/qcam/main_window.h
+++ b/src/qcam/main_window.h
@@ -35,7 +35,6 @@ private:
int openCamera();
int startCapture();
- int configureStreams(Camera *camera, std::set<Stream *> &streams);
void stopCapture();
void requestComplete(Request *request,