From 21c41730518e79a186239d337fa1888c52c6d14f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 11 Aug 2017 00:41:36 +0300 Subject: [PATCH] Fix up some integer types --- gstreamer-audio/src/audio_format_info.rs | 8 ++++---- gstreamer-audio/src/audio_info.rs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gstreamer-audio/src/audio_format_info.rs b/gstreamer-audio/src/audio_format_info.rs index ec5c0bd24..7c84b8ea9 100644 --- a/gstreamer-audio/src/audio_format_info.rs +++ b/gstreamer-audio/src/audio_format_info.rs @@ -78,12 +78,12 @@ impl AudioFormatInfo { from_glib(self.0.endianness) } - pub fn width(&self) -> i32 { - self.0.width + pub fn width(&self) -> u32 { + self.0.width as u32 } - pub fn depth(&self) -> i32 { - self.0.depth + pub fn depth(&self) -> u32 { + self.0.depth as u32 } pub fn unpack_format(&self) -> ::AudioFormat { diff --git a/gstreamer-audio/src/audio_info.rs b/gstreamer-audio/src/audio_info.rs index 7d0face86..185d4d6ec 100644 --- a/gstreamer-audio/src/audio_info.rs +++ b/gstreamer-audio/src/audio_info.rs @@ -204,11 +204,11 @@ impl AudioInfo { (self.format_info().depth() as u32) >> 3 } - pub fn depth(&self) -> i32 { + pub fn depth(&self) -> u32 { self.format_info().depth() } - pub fn width(&self) -> i32 { + pub fn width(&self) -> u32 { self.format_info().width() }