diff --git a/src/gstreamer/gstlibcamerasrc.cpp b/src/gstreamer/gstlibcamerasrc.cpp index 674512e52..aaea3b4de 100644 --- a/src/gstreamer/gstlibcamerasrc.cpp +++ b/src/gstreamer/gstlibcamerasrc.cpp @@ -774,7 +774,7 @@ gst_libcamera_src_set_property(GObject *object, guint prop_id, break; // Consti10/rapha dirty case PROP_ROTATION: - g_value_set_int(value, static_cast(image_params->rotation)); + g_value_set_int(const_cast(value), image_params->rotation); break; case PROP_HFLIP: g_value_set_int(value, image_params->hflip);