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,
"controllable": false,
"default": "200",
"max": "200",
"min": "18446744069414584320",
"max": "-1",
"min": "0",
"mutable": "null",
"readable": true,
"type": "guint",

View file

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