diff --git a/lib/src/ioctl/qbuf.rs b/lib/src/ioctl/qbuf.rs index c78edd3..91a170d 100644 --- a/lib/src/ioctl/qbuf.rs +++ b/lib/src/ioctl/qbuf.rs @@ -1,5 +1,6 @@ //! Safe wrapper for the VIDIOC_(D)QBUF and VIDIOC_QUERYBUF ioctls. use nix::errno::Errno; +use nix::libc::{suseconds_t, time_t}; use nix::sys::time::{TimeVal, TimeValLike}; use std::fmt::Debug; use std::mem; @@ -147,7 +148,7 @@ impl Default for QBuffer { } impl QBuffer { - pub fn set_timestamp(mut self, sec: i64, usec: i64) -> Self { + pub fn set_timestamp(mut self, sec: time_t, usec: suseconds_t) -> Self { self.timestamp = TimeVal::new(sec, usec); self }