Skip to content

Commit

Permalink
Always use decimal point (#280)
Browse files Browse the repository at this point in the history
Fixes: #279
  • Loading branch information
alainm23 authored Nov 4, 2024
1 parent 0f8b74f commit c8bfdda
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Widgets/CameraView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c8bfdda

Please sign in to comment.