summaryrefslogtreecommitdiff
path: root/src/qcam/main_window.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-03-23 01:58:19 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-03-24 10:34:03 +0200
commitb73192036db19f09057c64f350b53093ee9e7797 (patch)
tree3adce72c9f90c9d3062c7d51d7e8eebe2afc2b68 /src/qcam/main_window.cpp
parent275fd5bd33107a10b1e47a0d36d834b390831af0 (diff)
qcam: viewfinder: Move multi-planar check into viewfinder
The lack of support for multiplanar buffers comes from the viewfinder. Move the corresponding check from MainWindow. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/qcam/main_window.cpp')
-rw-r--r--src/qcam/main_window.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/qcam/main_window.cpp b/src/qcam/main_window.cpp
index d10c542c..3711a02c 100644
--- a/src/qcam/main_window.cpp
+++ b/src/qcam/main_window.cpp
@@ -524,14 +524,9 @@ void MainWindow::processCapture()
queueRequest(buffer);
}
-int MainWindow::display(FrameBuffer *buffer)
+void MainWindow::display(FrameBuffer *buffer)
{
- if (buffer->planes().size() != 1)
- return -EINVAL;
-
viewfinder_->display(buffer, &mappedBuffers_[buffer]);
-
- return 0;
}
void MainWindow::queueRequest(FrameBuffer *buffer)