mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 11:01:10 +00:00
Fix up some integer types
This commit is contained in:
parent
885267ebee
commit
21c4173051
2 changed files with 6 additions and 6 deletions
|
@ -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 {
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue