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:
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 /generic/threadshare/tests/proxy.rs
parentc99b7785f941fa4f9388a88e52d74c0fa34129ec (diff)
Update for GLib/GStreamer API changes
And clean up a lot of related property/caps/structure code.
Diffstat (limited to 'generic/threadshare/tests/proxy.rs')
-rw-r--r--generic/threadshare/tests/proxy.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/generic/threadshare/tests/proxy.rs b/generic/threadshare/tests/proxy.rs
index 87c1e1b17..538ec40a0 100644
--- a/generic/threadshare/tests/proxy.rs
+++ b/generic/threadshare/tests/proxy.rs
@@ -45,11 +45,11 @@ fn test_push() {
fakesrc.link(&proxysink).unwrap();
proxysrc.link(&appsink).unwrap();
- fakesrc.set_property("num-buffers", &3i32).unwrap();
- proxysink.set_property("proxy-context", &"test1").unwrap();
- proxysrc.set_property("proxy-context", &"test1").unwrap();
+ fakesrc.set_property("num-buffers", 3i32).unwrap();
+ proxysink.set_property("proxy-context", "test1").unwrap();
+ proxysrc.set_property("proxy-context", "test1").unwrap();
- appsink.set_property("emit-signals", &true).unwrap();
+ appsink.set_property("emit-signals", true).unwrap();
let samples = Arc::new(Mutex::new(Vec::new()));
@@ -117,8 +117,8 @@ fn test_from_pipeline_to_pipeline() {
pipe_2.add_many(&[&pxsrc, &fakesink]).unwrap();
pxsrc.link(&fakesink).unwrap();
- pxsink.set_property("proxy-context", &"test2").unwrap();
- pxsrc.set_property("proxy-context", &"test2").unwrap();
+ pxsink.set_property("proxy-context", "test2").unwrap();
+ pxsrc.set_property("proxy-context", "test2").unwrap();
pipe_1.set_state(gst::State::Paused).unwrap();
pipe_2.set_state(gst::State::Paused).unwrap();
@@ -149,11 +149,11 @@ fn test_from_pipeline_to_pipeline_and_back() {
pipe_2.add_many(&[&pxsrc_2, &pxsink_2]).unwrap();
pxsrc_2.link(&pxsink_2).unwrap();
- pxsrc_1.set_property("proxy-context", &"test3").unwrap();
- pxsink_2.set_property("proxy-context", &"test3").unwrap();
+ pxsrc_1.set_property("proxy-context", "test3").unwrap();
+ pxsink_2.set_property("proxy-context", "test3").unwrap();
- pxsrc_2.set_property("proxy-context", &"test4").unwrap();
- pxsink_1.set_property("proxy-context", &"test4").unwrap();
+ pxsrc_2.set_property("proxy-context", "test4").unwrap();
+ pxsink_1.set_property("proxy-context", "test4").unwrap();
pipe_1.set_state(gst::State::Paused).unwrap();
pipe_2.set_state(gst::State::Paused).unwrap();