fix multithreading on copy

This commit is contained in:
chaos 2023-10-20 16:57:29 +01:00
parent 4b9690938d
commit 462b989f6e
No known key found for this signature in database

View file

@ -236,8 +236,9 @@ fn transcode_files(
for _ in 0..threads {
s.spawn(|| loop {
let mut jobs = jobs.lock().unwrap();
let job = jobs.pop();
drop(jobs);
if let Some(job) = job {
let result = transcode_file(&job, &copy_args, &transcode_config, true);
if let Err(err) = result {