[1/1] gstreamer: Fix scaler-crop property get
diff mbox series

Message ID 20250216072131.654725-2-nerijus.bendziunas@gmail.com
State Accepted
Headers show
Series
  • gstreamer: Fix scaler-crop property get
Related show

Commit Message

Nerijus Bendžiūnas Feb. 16, 2025, 7:21 a.m. UTC
Signed-off-by: Nerijus Bendžiūnas <nerijus.bendziunas@gmail.com>
---
 src/gstreamer/gstlibcamera-controls.cpp.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.34.1

Comments

Laurent Pinchart Feb. 16, 2025, 5:45 p.m. UTC | #1
Hi Nerijus,

Thank you for the patch, and welcome to libcamera.

On Sun, Feb 16, 2025 at 09:21:31AM +0200, Nerijus Bendžiūnas wrote:

A commit message would be nice. The explanation you provided in the
cover letter would be a good fit:

Fix a copy/paste/replace typo. Without this fix, the last element (4th)
is always zero.

> Signed-off-by: Nerijus Bendžiūnas <nerijus.bendziunas@gmail.com>

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

If you're fine with the updated commit message there's no need to
resend, I can update the patch when applying.

> ---
>  src/gstreamer/gstlibcamera-controls.cpp.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/gstreamer/gstlibcamera-controls.cpp.in b/src/gstreamer/gstlibcamera-controls.cpp.in
> index ace36b71..d937b19e 100644
> --- a/src/gstreamer/gstlibcamera-controls.cpp.in
> +++ b/src/gstreamer/gstlibcamera-controls.cpp.in
> @@ -39,7 +39,7 @@ static void value_set_rectangle(GValue *value, const Rectangle &rect)
> 
>  	GValue height = G_VALUE_INIT;
>  	g_value_init(&height, G_TYPE_INT);
> -	g_value_set_int(&x, size.height);
> +	g_value_set_int(&height, size.height);
>  	gst_value_array_append_and_take_value(value, &height);
>  }
>
Nerijus Bendžiūnas Feb. 17, 2025, 4:25 p.m. UTC | #2
Hello,

I'm fine with your suggestion to reuse the cover later as message.

On Sun, Feb 16, 2025 at 7:45 PM Laurent Pinchart <
laurent.pinchart@ideasonboard.com> wrote:

> Hi Nerijus,
>
> Thank you for the patch, and welcome to libcamera.
>
> On Sun, Feb 16, 2025 at 09:21:31AM +0200, Nerijus Bendžiūnas wrote:
>
> A commit message would be nice. The explanation you provided in the
> cover letter would be a good fit:
>
> Fix a copy/paste/replace typo. Without this fix, the last element (4th)
> is always zero.
>
> > Signed-off-by: Nerijus Bendžiūnas <nerijus.bendziunas@gmail.com>
>
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
>
> If you're fine with the updated commit message there's no need to
> resend, I can update the patch when applying.
>
> > ---
> >  src/gstreamer/gstlibcamera-controls.cpp.in | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/src/gstreamer/gstlibcamera-controls.cpp.in b/src/gstreamer/
> gstlibcamera-controls.cpp.in
> > index ace36b71..d937b19e 100644
> > --- a/src/gstreamer/gstlibcamera-controls.cpp.in
> > +++ b/src/gstreamer/gstlibcamera-controls.cpp.in
> > @@ -39,7 +39,7 @@ static void value_set_rectangle(GValue *value, const
> Rectangle &rect)
> >
> >       GValue height = G_VALUE_INIT;
> >       g_value_init(&height, G_TYPE_INT);
> > -     g_value_set_int(&x, size.height);
> > +     g_value_set_int(&height, size.height);
> >       gst_value_array_append_and_take_value(value, &height);
> >  }
> >
>
> --
> Regards,
>
> Laurent Pinchart
>
Kieran Bingham Feb. 17, 2025, 4:49 p.m. UTC | #3
Quoting Nerijus Bendžiūnas (2025-02-17 16:25:17)
> Hello,
> 
> I'm fine with your suggestion to reuse the cover later as message.
> 
> On Sun, Feb 16, 2025 at 7:45 PM Laurent Pinchart <
> laurent.pinchart@ideasonboard.com> wrote:
> 
> > Hi Nerijus,
> >
> > Thank you for the patch, and welcome to libcamera.
> >
> > On Sun, Feb 16, 2025 at 09:21:31AM +0200, Nerijus Bendžiūnas wrote:
> >
> > A commit message would be nice. The explanation you provided in the
> > cover letter would be a good fit:
> >
> > Fix a copy/paste/replace typo. Without this fix, the last element (4th)
> > is always zero.
> >
> > > Signed-off-by: Nerijus Bendžiūnas <nerijus.bendziunas@gmail.com>
> >
> > Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> >
> > If you're fine with the updated commit message there's no need to
> > resend, I can update the patch when applying.

If it helps


Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

> >
> > > ---
> > >  src/gstreamer/gstlibcamera-controls.cpp.in | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/src/gstreamer/gstlibcamera-controls.cpp.in b/src/gstreamer/
> > gstlibcamera-controls.cpp.in
> > > index ace36b71..d937b19e 100644
> > > --- a/src/gstreamer/gstlibcamera-controls.cpp.in
> > > +++ b/src/gstreamer/gstlibcamera-controls.cpp.in
> > > @@ -39,7 +39,7 @@ static void value_set_rectangle(GValue *value, const
> > Rectangle &rect)
> > >
> > >       GValue height = G_VALUE_INIT;
> > >       g_value_init(&height, G_TYPE_INT);
> > > -     g_value_set_int(&x, size.height);
> > > +     g_value_set_int(&height, size.height);
> > >       gst_value_array_append_and_take_value(value, &height);
> > >  }
> > >
> >
> > --
> > Regards,
> >
> > Laurent Pinchart
> >
> 
> 
> -- 
> Nerijus

Patch
diff mbox series

diff --git a/src/gstreamer/gstlibcamera-controls.cpp.in b/src/gstreamer/gstlibcamera-controls.cpp.in
index ace36b71..d937b19e 100644
--- a/src/gstreamer/gstlibcamera-controls.cpp.in
+++ b/src/gstreamer/gstlibcamera-controls.cpp.in
@@ -39,7 +39,7 @@  static void value_set_rectangle(GValue *value, const Rectangle &rect)

 	GValue height = G_VALUE_INIT;
 	g_value_init(&height, G_TYPE_INT);
-	g_value_set_int(&x, size.height);
+	g_value_set_int(&height, size.height);
 	gst_value_array_append_and_take_value(value, &height);
 }