diff --git a/gst-plugin-threadshare/src/tcpclientsrc.rs b/gst-plugin-threadshare/src/tcpclientsrc.rs index 59e974000..212f7a513 100644 --- a/gst-plugin-threadshare/src/tcpclientsrc.rs +++ b/gst-plugin-threadshare/src/tcpclientsrc.rs @@ -453,14 +453,14 @@ impl TcpClientSrc { return Err(gst_error_msg!( gst::ResourceError::Settings, ["No address set"] - )) + )); } Some(ref addr) => match addr.parse() { Err(err) => { return Err(gst_error_msg!( gst::ResourceError::Settings, ["Invalid address '{}' set: {}", addr, err] - )) + )); } Ok(addr) => addr, }, diff --git a/gst-plugin-threadshare/src/udpsrc.rs b/gst-plugin-threadshare/src/udpsrc.rs index f25cbb527..884e98571 100644 --- a/gst-plugin-threadshare/src/udpsrc.rs +++ b/gst-plugin-threadshare/src/udpsrc.rs @@ -585,14 +585,14 @@ impl UdpSrc { return Err(gst_error_msg!( gst::ResourceError::Settings, ["No address set"] - )) + )); } Some(ref addr) => match addr.parse() { Err(err) => { return Err(gst_error_msg!( gst::ResourceError::Settings, ["Invalid address '{}' set: {}", addr, err] - )) + )); } Ok(addr) => addr, },