summaryrefslogtreecommitdiff
path: root/src/qcam/main_window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcam/main_window.cpp')
-rw-r--r--src/qcam/main_window.cpp4
1 files changed, 2 insertions, 2 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;