forked from mirrors/gstreamer-rs
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)
|
from_glib(self.0.endianness)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn width(&self) -> i32 {
|
pub fn width(&self) -> u32 {
|
||||||
self.0.width
|
self.0.width as u32
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn depth(&self) -> i32 {
|
pub fn depth(&self) -> u32 {
|
||||||
self.0.depth
|
self.0.depth as u32
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn unpack_format(&self) -> ::AudioFormat {
|
pub fn unpack_format(&self) -> ::AudioFormat {
|
||||||
|
|
|
@ -204,11 +204,11 @@ impl AudioInfo {
|
||||||
(self.format_info().depth() as u32) >> 3
|
(self.format_info().depth() as u32) >> 3
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn depth(&self) -> i32 {
|
pub fn depth(&self) -> u32 {
|
||||||
self.format_info().depth()
|
self.format_info().depth()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn width(&self) -> i32 {
|
pub fn width(&self) -> u32 {
|
||||||
self.format_info().width()
|
self.format_info().width()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue