Latest
This commit is contained in:
parent
ef8a94508c
commit
779e013aff
2 changed files with 4 additions and 2 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -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",
|
||||
]
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue