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:
Diffstat (limited to 'generic/threadshare/tests/udpsink.rs')
-rw-r--r--generic/threadshare/tests/udpsink.rs17
1 files changed, 2 insertions, 15 deletions
diff --git a/generic/threadshare/tests/udpsink.rs b/generic/threadshare/tests/udpsink.rs
index 3638f5388..b6bd7536e 100644
--- a/generic/threadshare/tests/udpsink.rs
+++ b/generic/threadshare/tests/udpsink.rs
@@ -83,8 +83,7 @@ fn test_client_management() {
.unwrap();
assert_eq!(clients, "127.0.0.1:5004");
- /* While the default host:address client is listed in clients,
- * it can't be removed with the remove signal */
+ /* Removing the default client is possible */
udpsink.emit("remove", &[&"127.0.0.1", &5004i32]).unwrap();
let clients = udpsink
.get_property("clients")
@@ -92,18 +91,6 @@ fn test_client_management() {
.get::<String>()
.unwrap()
.unwrap();
- assert_eq!(clients, "127.0.0.1:5004");
-
- /* It is however possible to remove the default client by setting
- * host to None */
- let host: Option<String> = None;
- udpsink.set_property("host", &host).unwrap();
- let clients = udpsink
- .get_property("clients")
- .unwrap()
- .get::<String>()
- .unwrap()
- .unwrap();
assert_eq!(clients, "");
/* The client properties is writable too */
@@ -136,7 +123,7 @@ fn test_chain() {
h.set_src_caps_str(&"foo/bar");
{
let udpsink = h.get_element().unwrap();
- udpsink.set_property("port", &5005i32).unwrap();
+ udpsink.set_property("clients", &"127.0.0.1:5005").unwrap();
}
thread::spawn(move || {