tsjitterbuffer: Fix latency type when getting property

This commit is contained in:
Thibault Saunier 2022-09-02 10:11:31 -04:00 committed by Sebastian Dröge
parent 67e9ba8286
commit 664e2b75bd
2 changed files with 3 additions and 3 deletions

View file

@ -5585,8 +5585,8 @@
"construct-only": false, "construct-only": false,
"controllable": false, "controllable": false,
"default": "200", "default": "200",
"max": "200", "max": "-1",
"min": "18446744069414584320", "min": "0",
"mutable": "null", "mutable": "null",
"readable": true, "readable": true,
"type": "guint", "type": "guint",

View file

@ -1475,7 +1475,7 @@ impl ObjectImpl for JitterBuffer {
match pspec.name() { match pspec.name() {
"latency" => { "latency" => {
let settings = self.settings.lock().unwrap(); let settings = self.settings.lock().unwrap();
settings.latency.mseconds().to_value() (settings.latency.mseconds() as u32).to_value()
} }
"do-lost" => { "do-lost" => {
let settings = self.settings.lock().unwrap(); let settings = self.settings.lock().unwrap();