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:
committed by
Laurent Pinchart
parent
68e76b668a
commit
8ce24bebbf
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user