diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2021-11-06 10:34:10 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2021-11-06 10:34:10 +0300 |
commit | d9bda62a4720c0539a443a4e489645e9bb4af1eb (patch) | |
tree | d59eef871715fda4a9b37e355909a345dbd598d0 /text/json/tests | |
parent | c99b7785f941fa4f9388a88e52d74c0fa34129ec (diff) |
Update for GLib/GStreamer API changes
And clean up a lot of related property/caps/structure code.
Diffstat (limited to 'text/json/tests')
-rw-r--r-- | text/json/tests/json.rs | 9 |
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() + )); } _ => (), } |