threadshare: Update to getifaddrs 0.5

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2503>
This commit is contained in:
Sebastian Dröge 2025-08-28 10:20:47 +03:00 committed by GStreamer Marge Bot
parent 6f40cb0430
commit ec4f00fa05
3 changed files with 8 additions and 7 deletions

4
Cargo.lock generated
View file

@ -2462,9 +2462,9 @@ dependencies = [
[[package]]
name = "getifaddrs"
version = "0.2.0"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1c016cebf305060d144de015c98191ede05c210af588857bc2d4f8611c04663"
checksum = "b7b2d14d6cb5b573aaeb37d2f9baac2623f8b7de35742046fb4cc1c7b90c97d2"
dependencies = [
"bitflags 2.9.1",
"libc",

View file

@ -30,7 +30,7 @@ slab = "0.4.7"
socket2 = {features = ["all"], version = "0.6"}
thiserror = "2"
waker-fn = "1.1"
getifaddrs = "0.2"
getifaddrs = "0.5"
libc = "0.2"
[target.'cfg(target_os = "windows")'.dependencies]

View file

@ -429,10 +429,11 @@ impl TaskImpl for UdpSrcTask {
name: "default".to_owned(),
#[cfg(windows)]
description: "default".to_owned(),
address: IpAddr::V4(Ipv4Addr::UNSPECIFIED),
#[cfg(not(windows))]
associated_address: None,
netmask: None,
address: getifaddrs::Address::V4(getifaddrs::NetworkAddress {
address: Ipv4Addr::UNSPECIFIED,
netmask: None,
associated_address: None,
}),
flags: getifaddrs::InterfaceFlags::UP,
index: Some(0),
});