Skip to content

Commit

Permalink
safety logic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ONdraid committed Nov 20, 2022
1 parent 7859190 commit ce40274
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,8 @@ fn main() {

for _ in 0..unprocessed_indexes.len() {
let segment = &unprocessed_indexes[0];
export_handle.join().unwrap();
if unprocessed_indexes.len() != 1 {
export_handle.join().unwrap();

let index = unprocessed_indexes[1].index;
let _inpt = input_path.clone();
let _outpt = format!("temp\\tmp_frames\\{}\\frame%08d.png", index);
Expand Down Expand Up @@ -342,6 +341,8 @@ fn main() {
)
.unwrap();
});
} else {
export_handle = thread::spawn(move || {});
}

let inpt_dir = format!("temp\\tmp_frames\\{}", segment.index);
Expand Down

0 comments on commit ce40274

Please sign in to comment.