From 0cc65c0f7e30798594917ee392bf4e9585f50e1e Mon Sep 17 00:00:00 2001 From: ochibani <11yzyv86j@relay.firefox.com> Date: Sat, 4 Jan 2025 16:13:13 +0200 Subject: [PATCH] update start_record --- gui/src/ui.rs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/gui/src/ui.rs b/gui/src/ui.rs index eeedc81..5597d46 100644 --- a/gui/src/ui.rs +++ b/gui/src/ui.rs @@ -810,13 +810,6 @@ fn build_ui(application: &Application, error_dialog: MessageDialog, error_messag ); } else if _delay_spin.value() as u16 == 0 { let _area_capture = area_capture.borrow_mut(); - let start_video_record = _ffmpeg_record_interface.borrow_mut().start_video( - _area_capture.x, - _area_capture.y, - _area_capture.width, - _area_capture.height, - mode, - ); _audio_input_switch.set_sensitive(false); _audio_output_switch.set_sensitive(false); _video_switch.set_sensitive(false); @@ -865,7 +858,13 @@ fn build_ui(application: &Application, error_dialog: MessageDialog, error_messag } } if _video_switch.is_active() { - match start_video_record { + match _ffmpeg_record_interface.borrow_mut().start_video( + _area_capture.x, + _area_capture.y, + _area_capture.width, + _area_capture.height, + mode + ) { Ok(_) => { // Do nothing },