mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
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
3 changed files with 9 additions and 0 deletions
|
@ -101,6 +101,9 @@ impl App {
|
|||
MessageView::Warning(warning) => {
|
||||
println!("Warning: \"{}\"", warning.debug().unwrap());
|
||||
}
|
||||
MessageView::Latency(_) => {
|
||||
let _ = self.pipeline.recalculate_latency();
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
Ok(())
|
||||
|
|
|
@ -295,6 +295,9 @@ impl App {
|
|||
MessageView::Warning(warning) => {
|
||||
println!("Warning: \"{}\"", warning.debug().unwrap());
|
||||
}
|
||||
MessageView::Latency(_) => {
|
||||
let _ = self.pipeline.recalculate_latency();
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
|
||||
|
|
|
@ -255,6 +255,9 @@ impl App {
|
|||
MessageView::Warning(warning) => {
|
||||
println!("Warning: \"{}\"", warning.debug().unwrap());
|
||||
}
|
||||
MessageView::Latency(_) => {
|
||||
let _ = self.pipeline.recalculate_latency();
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue