diff options
Diffstat (limited to 'generic/threadshare/src/socket.rs')
-rw-r--r-- | generic/threadshare/src/socket.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/threadshare/src/socket.rs b/generic/threadshare/src/socket.rs index 4af375536..bffd9081d 100644 --- a/generic/threadshare/src/socket.rs +++ b/generic/threadshare/src/socket.rs @@ -315,7 +315,7 @@ pub fn wrap_socket(socket: &tokio::net::UdpSocket) -> Result<GioSocketWrapper, g let fd = FdConverter(fd); - let gio_socket = gio::Socket::new_from_fd(fd).map_err(|err| { + let gio_socket = gio::Socket::from_fd(fd).map_err(|err| { gst_error_msg!( gst::ResourceError::OpenWrite, ["Failed to create wrapped GIO socket: {}", err] @@ -340,7 +340,7 @@ pub fn wrap_socket(socket: &tokio::net::UdpSocket) -> Result<GioSocketWrapper, g let fd = SocketConverter(fd); - let gio_socket = gio::Socket::new_from_socket(fd).map_err(|err| { + let gio_socket = gio::Socket::from_socket(fd).map_err(|err| { gst_error_msg!( gst::ResourceError::OpenWrite, ["Failed to create wrapped GIO socket: {}", err] |