summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNerijus Bendžiūnas <nerijus.bendziunas@gmail.com>2025-02-16 09:21:31 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2025-02-17 18:59:22 +0200
commit892e85e4e35a29dd6dc492117404ffb300dd9767 (patch)
tree1f9112d10f79249889ae17a64163bf9f2855aff5
parent9834402f81bb1fc597b0b9dcdf7cdceda09083b4 (diff)
gstreamer: Fix scaler-crop property getHEADmaster
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> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--src/gstreamer/gstlibcamera-controls.cpp.in2
1 files changed, 1 insertions, 1 deletions
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);
}