mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-09-24 13:00:12 +00:00
threadshare/socket: Fix build error on Windows
error[E0412]: cannot find type `Error` in this scope --> generic\threadshare\src\socket.rs:237:56 | 237 | pub fn set_tos(&self, qos_dscp: i32) -> Result<(), Error> { | ^^^^^ not found in this scope
This commit is contained in:
parent
643544876b
commit
5cba2b002b
1 changed files with 2 additions and 2 deletions
|
@ -217,7 +217,7 @@ impl GioSocketWrapper {
|
|||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
pub fn set_tos(&self, qos_dscp: i32) -> Result<(), glib::error::Error> {
|
||||
pub fn set_tos(&self, qos_dscp: i32) -> Result<(), glib::Error> {
|
||||
use libc::{IPPROTO_IP, IPPROTO_IPV6, IPV6_TCLASS, IP_TOS};
|
||||
|
||||
let tos = (qos_dscp & 0x3f) << 2;
|
||||
|
@ -234,7 +234,7 @@ impl GioSocketWrapper {
|
|||
}
|
||||
|
||||
#[cfg(not(unix))]
|
||||
pub fn set_tos(&self, qos_dscp: i32) -> Result<(), Error> {
|
||||
pub fn set_tos(&self, qos_dscp: i32) -> Result<(), glib::Error> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue