This commit is contained in:
Rafael Caricio 2022-02-02 15:00:43 +01:00
parent ef8a94508c
commit 779e013aff
Signed by: rafaelcaricio
GPG key ID: 3C86DBCE8E93C947
2 changed files with 4 additions and 2 deletions

4
Cargo.lock generated
View file

@ -215,7 +215,7 @@ dependencies = [
[[package]] [[package]]
name = "gst-plugin-closedcaption" name = "gst-plugin-closedcaption"
version = "0.8.0" version = "0.9.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"atomic_refcell", "atomic_refcell",
@ -239,7 +239,7 @@ dependencies = [
[[package]] [[package]]
name = "gst-plugin-version-helper" name = "gst-plugin-version-helper"
version = "0.8.0" version = "0.9.0"
dependencies = [ dependencies = [
"chrono", "chrono",
] ]

View file

@ -89,6 +89,8 @@ fn main_loop(pipeline: gst::Pipeline) -> Result<(), Error> {
while RUNNING.load(Ordering::Relaxed) { while RUNNING.load(Ordering::Relaxed) {
if let Some(pipeline) = pipeline_weak.upgrade() { if let Some(pipeline) = pipeline_weak.upgrade() {
push_buffer(&pipeline, subtitles[sub_idx.next().unwrap_or(0)]); push_buffer(&pipeline, subtitles[sub_idx.next().unwrap_or(0)]);
} else {
break;
} }
println!("pushed the buffer.. now waiting."); println!("pushed the buffer.. now waiting.");
std::thread::sleep(Duration::from_secs(5)); std::thread::sleep(Duration::from_secs(5));