Merge pull request #6 from ffplayout/master

fix player control in HLS mode
This commit is contained in:
jb-alvarado 2023-06-25 17:26:18 +00:00 committed by GitHub
commit c03e44e968
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,12 @@
# Changelog
## [0.18.4](https://github.com/ffplayout/ffplayout/releases/tag/v0.18.4) (2023-06-25)
### ffplayout
- fix player control in HLS Mode [ec33cdb](https://github.com/ffplayout/ffplayout/commit/ec33cdb30944ab19c028a085fcb6d974ec4e81be)
## [0.18.3](https://github.com/ffplayout/ffplayout/releases/tag/v0.18.3) (2023-06-16)
### ffpapi

View File

@ -186,7 +186,7 @@ pub fn write_hls(
enc_cmd.join(" ")
);
let mut enc_proc = match Command::new("ffmpeg")
let mut dec_proc = match Command::new("ffmpeg")
.args(enc_cmd)
.stderr(Stdio::piped())
.spawn()
@ -198,8 +198,8 @@ pub fn write_hls(
Ok(proc) => proc,
};
let enc_err = BufReader::new(enc_proc.stderr.take().unwrap());
*proc_control.encoder_term.lock().unwrap() = Some(enc_proc);
let enc_err = BufReader::new(dec_proc.stderr.take().unwrap());
*proc_control.decoder_term.lock().unwrap() = Some(dec_proc);
if let Err(e) = stderr_reader(enc_err, Encoder, proc_control.clone()) {
error!("{e:?}")