From 8ce24bebbf177136b1a5640287239644e98c4b52 Mon Sep 17 00:00:00 2001 From: Naushir Patuck Date: Tue, 11 Feb 2020 08:50:10 +0000 Subject: qcam: Switch default stream role to viewfinder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit qcam currently only displays a standard viewfinder. As such set the StreamRole parameter to Viewfinder so that the pipeline handlers can setup the appropriate resolutions and formats. Signed-off-by: Naushir Patuck Reviewed-by: Kieran Bingham Reviewed-by: Niklas Söderlund Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart --- src/qcam/main_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qcam') diff --git a/src/qcam/main_window.cpp b/src/qcam/main_window.cpp index df51fa88..70a3e61c 100644 --- a/src/qcam/main_window.cpp +++ b/src/qcam/main_window.cpp @@ -125,7 +125,7 @@ int MainWindow::startCapture() { int ret; - config_ = camera_->generateConfiguration({ StreamRole::VideoRecording }); + config_ = camera_->generateConfiguration({ StreamRole::Viewfinder }); StreamConfiguration &cfg = config_->at(0); if (options_.isSet(OptSize)) { -- cgit v1.2.1