[libcamera-devel,7/8] gstreamer: gstlibcamerasrc: Fix include ordering
diff mbox series

Message ID 20211206233948.1351206-8-kieran.bingham@ideasonboard.com
State Accepted
Delegated to: Kieran Bingham
Headers show
Series
  • Request metadata: SensorSequence
Related show

Commit Message

Kieran Bingham Dec. 6, 2021, 11:39 p.m. UTC
The libcamera coding style has libcamera headers after system headers,
and before any other library headers.

Move the libcamera headers above the Gst headers accordingly.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
---
 src/gstreamer/gstlibcamerasrc.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Laurent Pinchart Dec. 7, 2021, 12:11 a.m. UTC | #1
Hi Kieran,

Thank you for the patch.

On Mon, Dec 06, 2021 at 11:39:47PM +0000, Kieran Bingham wrote:
> The libcamera coding style has libcamera headers after system headers,
> and before any other library headers.
> 
> Move the libcamera headers above the Gst headers accordingly.
> 
> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  src/gstreamer/gstlibcamerasrc.cpp | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/gstreamer/gstlibcamerasrc.cpp b/src/gstreamer/gstlibcamerasrc.cpp
> index 812ba7a2bd6e..c7292f66b17b 100644
> --- a/src/gstreamer/gstlibcamerasrc.cpp
> +++ b/src/gstreamer/gstlibcamerasrc.cpp
> @@ -32,11 +32,11 @@
>  #include <queue>
>  #include <vector>
>  
> -#include <gst/base/base.h>
> -
>  #include <libcamera/camera.h>
>  #include <libcamera/camera_manager.h>
>  
> +#include <gst/base/base.h>
> +
>  #include "gstlibcameraallocator.h"
>  #include "gstlibcamerapad.h"
>  #include "gstlibcamerapool.h"
Umang Jain Dec. 7, 2021, 1:58 p.m. UTC | #2
Hi

On 12/7/21 5:09 AM, Kieran Bingham wrote:
> The libcamera coding style has libcamera headers after system headers,
> and before any other library headers.
>
> Move the libcamera headers above the Gst headers accordingly.
>
> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>


Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>

> ---
>   src/gstreamer/gstlibcamerasrc.cpp | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/gstreamer/gstlibcamerasrc.cpp b/src/gstreamer/gstlibcamerasrc.cpp
> index 812ba7a2bd6e..c7292f66b17b 100644
> --- a/src/gstreamer/gstlibcamerasrc.cpp
> +++ b/src/gstreamer/gstlibcamerasrc.cpp
> @@ -32,11 +32,11 @@
>   #include <queue>
>   #include <vector>
>   
> -#include <gst/base/base.h>
> -
>   #include <libcamera/camera.h>
>   #include <libcamera/camera_manager.h>
>   
> +#include <gst/base/base.h>
> +
>   #include "gstlibcameraallocator.h"
>   #include "gstlibcamerapad.h"
>   #include "gstlibcamerapool.h"

Patch
diff mbox series

diff --git a/src/gstreamer/gstlibcamerasrc.cpp b/src/gstreamer/gstlibcamerasrc.cpp
index 812ba7a2bd6e..c7292f66b17b 100644
--- a/src/gstreamer/gstlibcamerasrc.cpp
+++ b/src/gstreamer/gstlibcamerasrc.cpp
@@ -32,11 +32,11 @@ 
 #include <queue>
 #include <vector>
 
-#include <gst/base/base.h>
-
 #include <libcamera/camera.h>
 #include <libcamera/camera_manager.h>
 
+#include <gst/base/base.h>
+
 #include "gstlibcameraallocator.h"
 #include "gstlibcamerapad.h"
 #include "gstlibcamerapool.h"