fix encoder_term

This commit is contained in:
jb-alvarado 2022-05-10 11:26:18 +02:00
parent 01f5449446
commit 855a9f9a54

View File

@ -64,7 +64,7 @@ pub fn player(
// spawn a thread to log ffmpeg output error messages // spawn a thread to log ffmpeg output error messages
let error_encoder_thread = thread::spawn(move || stderr_reader(enc_err, "Encoder")); let error_encoder_thread = thread::spawn(move || stderr_reader(enc_err, "Encoder"));
*proc_control.decoder_term.lock().unwrap() = Some(enc_proc); *proc_control.encoder_term.lock().unwrap() = Some(enc_proc);
let ff_log_format_c = ff_log_format.clone(); let ff_log_format_c = ff_log_format.clone();
let proc_control_c = proc_control.clone(); let proc_control_c = proc_control.clone();