@@ -40,6 +40,7 @@ pub(crate) struct App<'a> {
4040 // Input
4141 pub original_filename : Box < str > ,
4242 pub source : Source ,
43+ pub info : & ' a Info ,
4344 pub info_state : InfoPaneState < ' a > ,
4445 // Output
4546 pub out_state : OutputPaneState ,
@@ -50,8 +51,8 @@ pub(crate) struct App<'a> {
5051 render_stdin : Option < ChildStdin > ,
5152}
5253
53- impl App < ' _ > {
54- pub fn new ( tx : Sender < AppEvent > , info : & Info , source : Source , preset : Option < & str > ) -> Self {
54+ impl < ' a > App < ' a > {
55+ pub fn new ( tx : Sender < AppEvent > , info : & ' a Info , source : Source , preset : Option < & str > ) -> Self {
5556 let mut list_state = ListState :: default ( ) ;
5657 list_state. select ( Some ( 0 ) ) ;
5758 let folder = source. input_folder ( ) ;
@@ -78,6 +79,7 @@ impl App<'_> {
7879 // Info
7980 original_filename,
8081 source,
82+ info,
8183 info_state,
8284 // Output
8385 out_state : OutputPaneState :: new ( String :: new ( ) ) ,
@@ -383,7 +385,7 @@ impl App<'_> {
383385 }
384386
385387 fn build_ffmpeg_command ( & mut self , overwrite : bool ) -> Vec < String > {
386- let mut command_builder = CommandBuilder :: default ( ) ;
388+ let mut command_builder = CommandBuilder :: new ( self . info ) ;
387389 apply_visitor ( & mut command_builder, & mut self . params ) ;
388390 let input = self . source . input . clone ( ) ;
389391 let mut path = PathBuf :: new ( )
0 commit comments