File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -850,7 +850,7 @@ impl RecordingSession {
850850 stop_sig : self . stop_sig_combine ,
851851 } ;
852852
853- combine_tracks ( combine_config, combine_progress_cb) ?;
853+ let combine_tracks_state = combine_tracks ( combine_config, combine_progress_cb) ?;
854854
855855 if tmp_output_file. exists ( ) {
856856 _ = fs:: rename ( & tmp_output_file, & self . config . output_path ) ;
@@ -862,10 +862,12 @@ impl RecordingSession {
862862 self . config. output_path. display( ) ,
863863 ) ;
864864 } else {
865- return Err ( RecorderError :: Ffmpeg ( format ! (
866- "Save recorded file: {} failed. Something wrong with ffmpeg operation" ,
867- self . config. output_path. display( )
868- ) ) ) ;
865+ if combine_tracks_state == ProgressState :: Finished {
866+ return Err ( RecorderError :: Ffmpeg ( format ! (
867+ "Save recorded file: {} failed. Something wrong with ffmpeg operation" ,
868+ self . config. output_path. display( )
869+ ) ) ) ;
870+ }
869871 }
870872
871873 if self . config . remove_cache_files && self . config . output_path . exists ( ) {
Original file line number Diff line number Diff line change @@ -434,7 +434,7 @@ component Banners inherits VerticalLayout {
434434 HorizontalLayout {
435435 Label {
436436 color : Theme.light-text-color;
437- text : Store.merge-tracks-status == MergeTrackStatus.Finished ? (Logic.tr("Merging tracks successfully! " ) + " " + Logic.tr("Output file" ) + ": " + Store.final-video-path) : Logic.tr("Merging tracks failed" );
437+ text : Store.merge-tracks-status == MergeTrackStatus.Finished ? (Logic.tr("Merging tracks successfully" ) + "! " + Logic.tr("Output file" ) + ": " + Store.final-video-path) : Logic.tr("Merging tracks failed" );
438438 font-weight : Theme.bold-font-weight;
439439 }
440440 }
You can’t perform that action at this time.
0 commit comments