mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-25 11:30:29 +00:00
threadshare: Fix deprecation warnings and move to released versions of tokio
This commit is contained in:
parent
4e8c6fd293
commit
132986cf71
3 changed files with 8 additions and 8 deletions
|
@ -11,11 +11,11 @@ glib = { git = "https://github.com/gtk-rs/glib" }
|
|||
gstreamer = { git = "https://github.com/sdroege/gstreamer-rs" }
|
||||
gobject-subclass = { git = "https://github.com/gtk-rs/gobject-subclass" }
|
||||
gst-plugin = { git = "https://github.com/sdroege/gst-plugin-rs" }
|
||||
tokio = { git = "https://github.com/tokio-rs/tokio" }
|
||||
tokio-reactor = { git = "https://github.com/tokio-rs/tokio" }
|
||||
tokio-executor = { git = "https://github.com/tokio-rs/tokio" }
|
||||
tokio-timer = { git = "https://github.com/tokio-rs/tokio" }
|
||||
tokio-current-thread = { git = "https://github.com/tokio-rs/tokio" }
|
||||
tokio = "0.1"
|
||||
tokio-reactor = "0.1"
|
||||
tokio-executor = "0.1"
|
||||
tokio-timer = "0.2"
|
||||
tokio-current-thread = "0.1"
|
||||
futures = "0.1"
|
||||
lazy_static = "1.0"
|
||||
either = "1.0"
|
||||
|
|
|
@ -254,7 +254,7 @@ impl<T: SocketRead + 'static> Stream for SocketStream<T> {
|
|||
}
|
||||
Err(err) => {
|
||||
gst_debug!(SOCKET_CAT, obj: &inner.element, "Failed to acquire buffer {:?}", err);
|
||||
return Err(Either::Left(err.into_result().unwrap_err()));
|
||||
return Err(Either::Left(err));
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
|
@ -120,12 +120,12 @@ static PROPERTIES: [Property; 6] = [
|
|||
];
|
||||
|
||||
pub struct TcpClientReader {
|
||||
connect_future: net::ConnectFuture,
|
||||
connect_future: net::tcp::ConnectFuture,
|
||||
socket: Option<net::TcpStream>,
|
||||
}
|
||||
|
||||
impl TcpClientReader {
|
||||
pub fn new(connect_future: net::ConnectFuture) -> Self {
|
||||
pub fn new(connect_future: net::tcp::ConnectFuture) -> Self {
|
||||
Self {
|
||||
connect_future: connect_future,
|
||||
socket: None,
|
||||
|
|
Loading…
Reference in a new issue