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
path: root/text/wrap
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2021-11-06 10:34:10 +0300
committerSebastian Dröge <sebastian@centricular.com>2021-11-06 10:34:10 +0300
commitd9bda62a4720c0539a443a4e489645e9bb4af1eb (patch)
treed59eef871715fda4a9b37e355909a345dbd598d0 /text/wrap
parentc99b7785f941fa4f9388a88e52d74c0fa34129ec (diff)
Update for GLib/GStreamer API changes
And clean up a lot of related property/caps/structure code.
Diffstat (limited to 'text/wrap')
-rw-r--r--text/wrap/src/gsttextwrap/imp.rs2
-rw-r--r--text/wrap/tests/textwrap.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/text/wrap/src/gsttextwrap/imp.rs b/text/wrap/src/gsttextwrap/imp.rs
index 2a51c9539..369afa2b1 100644
--- a/text/wrap/src/gsttextwrap/imp.rs
+++ b/text/wrap/src/gsttextwrap/imp.rs
@@ -632,7 +632,7 @@ impl ElementImpl for TextWrap {
fn pad_templates() -> &'static [gst::PadTemplate] {
static PAD_TEMPLATES: Lazy<Vec<gst::PadTemplate>> = Lazy::new(|| {
let caps = gst::Caps::builder("text/x-raw")
- .field("format", &"utf8")
+ .field("format", "utf8")
.build();
let src_pad_template = gst::PadTemplate::new(
"src",
diff --git a/text/wrap/tests/textwrap.rs b/text/wrap/tests/textwrap.rs
index 618a8d0fc..73658d401 100644
--- a/text/wrap/tests/textwrap.rs
+++ b/text/wrap/tests/textwrap.rs
@@ -39,7 +39,7 @@ fn test_columns() {
{
let wrap = h.element().expect("Could not create textwrap");
- wrap.set_property("columns", &5u32).unwrap();
+ wrap.set_property("columns", 5u32).unwrap();
}
h.set_src_caps_str("text/x-raw, format=utf8");
@@ -77,8 +77,8 @@ fn test_lines() {
{
let wrap = h.element().expect("Could not create textwrap");
- wrap.set_property("columns", &5u32).unwrap();
- wrap.set_property("lines", &2u32).unwrap();
+ wrap.set_property("columns", 5u32).unwrap();
+ wrap.set_property("lines", 2u32).unwrap();
}
h.set_src_caps_str("text/x-raw, format=utf8");