mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-21 15:53:54 +03:00
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>
This commit is contained in:
parent
68e76b668a
commit
8ce24bebbf
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ int MainWindow::startCapture()
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
config_ = camera_->generateConfiguration({ StreamRole::VideoRecording });
|
config_ = camera_->generateConfiguration({ StreamRole::Viewfinder });
|
||||||
|
|
||||||
StreamConfiguration &cfg = config_->at(0);
|
StreamConfiguration &cfg = config_->at(0);
|
||||||
if (options_.isSet(OptSize)) {
|
if (options_.isSet(OptSize)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue