diff --git a/gstreamer/src/format/macros.rs b/gstreamer/src/format/macros.rs index 11a642ae7..68e35bfdd 100644 --- a/gstreamer/src/format/macros.rs +++ b/gstreamer/src/format/macros.rs @@ -208,6 +208,12 @@ macro_rules! impl_unsigned_int_into_signed( Some(self?.into_negative()) } } + + impl From<$typ> for crate::Signed<$typ> { + fn from(v: $typ) -> crate::Signed<$typ> { + crate::Signed::Positive(v) + } + } }; ($typ:ty, $inner:ty) => {