From c8bfddad8aa6b0a00e8b7dbd8663d3ef0e898191 Mon Sep 17 00:00:00 2001 From: Alain Date: Mon, 4 Nov 2024 10:24:12 +0000 Subject: [PATCH] Always use decimal point (#280) Fixes: #279 --- src/Widgets/CameraView.vala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Widgets/CameraView.vala b/src/Widgets/CameraView.vala index b25951571..765c04b53 100644 --- a/src/Widgets/CameraView.vala +++ b/src/Widgets/CameraView.vala @@ -297,10 +297,9 @@ public class Camera.Widgets.CameraView : Gtk.Box { "v4l2src device=%s name=%s num-buffers=1 !".printf (device_path, VIDEO_SRC_NAME) + "videoscale ! video/x-raw, width=%d, height=%d !".printf (picture_width, picture_height) + "videoflip method=%s !".printf ((horizontal_flip)?"horizontal-flip":"none") + - "videobalance brightness=%f contrast=%f !".printf (brightness_value.get_double (), contrast_value.get_double ()) + + "videobalance brightness=%s contrast=%s !".printf (brightness_value.get_double ().to_string (), contrast_value.get_double ().to_string ()) + "jpegenc ! filesink location=%s name=filesink".printf (Camera.Utils.get_new_media_filename (Camera.Utils.ActionType.PHOTO)) ); - } catch (Error e) { warning ("Could not make picture pipeline for photo - %s", e.message); return;