net: Fix compilation with gio API changes

This commit is contained in:
Sebastian Dröge 2020-10-12 09:48:03 +03:00
parent a8ed2ac6e0
commit 3c705a3f3d

View file

@ -69,7 +69,7 @@ mod tests {
let mut buffer = gst::Buffer::new();
let port = 5000;
let inet_addr = gio::InetAddress::from_string("127.0.0.1");
let inet_addr = gio::InetAddress::from_string("127.0.0.1").unwrap();
let expected_addr = &gio::InetSocketAddress::new(&inet_addr, port);