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

github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/text/json
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/json
parentc99b7785f941fa4f9388a88e52d74c0fa34129ec (diff)
Update for GLib/GStreamer API changes
And clean up a lot of related property/caps/structure code.
Diffstat (limited to 'text/json')
-rw-r--r--text/json/tests/json.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/text/json/tests/json.rs b/text/json/tests/json.rs
index f628e38d..234d8aab 100644
--- a/text/json/tests/json.rs
+++ b/text/json/tests/json.rs
@@ -89,10 +89,11 @@ fn test_parse() {
match ev.view() {
EventView::Caps(ev) => {
- assert!(ev.caps().is_strictly_equal(&gst::Caps::new_simple(
- "application/x-json",
- &[("format", &"test")]
- )));
+ assert!(ev.caps().is_strictly_equal(
+ &gst::Caps::builder("application/x-json")
+ .field("format", "test")
+ .build()
+ ));
}
_ => (),
}