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]]
name = "gst-plugin-closedcaption"
version = "0.8.0"
version = "0.9.0"
dependencies = [
"anyhow",
"atomic_refcell",
@ -239,7 +239,7 @@ dependencies = [
[[package]]
name = "gst-plugin-version-helper"
version = "0.8.0"
version = "0.9.0"
dependencies = [
"chrono",
]

View file

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