examples: webrtc: Add handling of the LATENCY messages to the Rust examples
Without this the configured latency on the pipeline will be wrong. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3609>
This commit is contained in:
parent
284d22437e
commit
c739fcbe41
@ -101,6 +101,9 @@ impl App {
|
|||||||
MessageView::Warning(warning) => {
|
MessageView::Warning(warning) => {
|
||||||
println!("Warning: \"{}\"", warning.debug().unwrap());
|
println!("Warning: \"{}\"", warning.debug().unwrap());
|
||||||
}
|
}
|
||||||
|
MessageView::Latency(_) => {
|
||||||
|
let _ = self.pipeline.recalculate_latency();
|
||||||
|
}
|
||||||
_ => (),
|
_ => (),
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
@ -295,6 +295,9 @@ impl App {
|
|||||||
MessageView::Warning(warning) => {
|
MessageView::Warning(warning) => {
|
||||||
println!("Warning: \"{}\"", warning.debug().unwrap());
|
println!("Warning: \"{}\"", warning.debug().unwrap());
|
||||||
}
|
}
|
||||||
|
MessageView::Latency(_) => {
|
||||||
|
let _ = self.pipeline.recalculate_latency();
|
||||||
|
}
|
||||||
_ => (),
|
_ => (),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -255,6 +255,9 @@ impl App {
|
|||||||
MessageView::Warning(warning) => {
|
MessageView::Warning(warning) => {
|
||||||
println!("Warning: \"{}\"", warning.debug().unwrap());
|
println!("Warning: \"{}\"", warning.debug().unwrap());
|
||||||
}
|
}
|
||||||
|
MessageView::Latency(_) => {
|
||||||
|
let _ = self.pipeline.recalculate_latency();
|
||||||
|
}
|
||||||
_ => (),
|
_ => (),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user