diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2025-03-14 21:27:06 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2025-03-20 16:03:27 +0200 |
commit | 330cd1c56007252932a100c741548b94131e09c6 (patch) | |
tree | e60f426efaf196d3ada3b053ee5102daa42b41cb /src/apps/cam/main.cpp | |
parent | 841ef2b4bb08ba48470817ff1f838efcce377fee (diff) |
apps: cam: Fix include order
Several .cpp files in the cam application don't include their
corresponding header first, as usually done by libcamera to ensure that
headers are self-contained. Reorder headers to fix it. This shows
through a compilation error that file_sink.h is missing
libcamera/controls.h, fix it as well.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com>
Diffstat (limited to 'src/apps/cam/main.cpp')
-rw-r--r-- | src/apps/cam/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/apps/cam/main.cpp b/src/apps/cam/main.cpp index 460dbc81..fa266eca 100644 --- a/src/apps/cam/main.cpp +++ b/src/apps/cam/main.cpp @@ -5,6 +5,8 @@ * cam - The libcamera swiss army knife */ +#include "main.h" + #include <atomic> #include <iomanip> #include <iostream> @@ -19,7 +21,6 @@ #include "../common/stream_options.h" #include "camera_session.h" -#include "main.h" using namespace libcamera; |