summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNaushir Patuck <naush@raspberrypi.com>2020-02-11 08:50:10 +0000
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-02-11 11:12:23 +0200
commit8ce24bebbf177136b1a5640287239644e98c4b52 (patch)
treeca7c3ad72fac57274688d84e46b3d84a25266897 /src
parent68e76b668a5db176e2f817db7dd17e93e63cc30b (diff)
qcam: Switch default stream role to viewfinder
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 <naush@raspberrypi.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r--src/qcam/main_window.cpp2
1 files changed, 1 insertions, 1 deletions
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)) {