Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2022-09-02 17:11:31 +0300
committerSebastian Dröge <slomo@coaxion.net>2022-09-03 00:41:35 +0300
commit664e2b75bdb75c70803f498a516783453a288177 (patch)
tree9038ce7e562430ddee8cf6af805aeb7c76848b1b
parent67e9ba8286af1edd3f53bbff3afbac3923bc6fc7 (diff)
tsjitterbuffer: Fix latency type when getting property
-rw-r--r--docs/plugins/gst_plugins_cache.json4
-rw-r--r--generic/threadshare/src/jitterbuffer/imp.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/plugins/gst_plugins_cache.json b/docs/plugins/gst_plugins_cache.json
index 31e84b2ac..520708a88 100644
--- a/docs/plugins/gst_plugins_cache.json
+++ b/docs/plugins/gst_plugins_cache.json
@@ -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",
diff --git a/generic/threadshare/src/jitterbuffer/imp.rs b/generic/threadshare/src/jitterbuffer/imp.rs
index ffc8fd010..82683225c 100644
--- a/generic/threadshare/src/jitterbuffer/imp.rs
+++ b/generic/threadshare/src/jitterbuffer/imp.rs
@@ -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();