mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 09:31:06 +00:00
Fix some more new clippy warnings
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1167>
This commit is contained in:
parent
c32607a010
commit
857f3740e2
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ impl<O: IsA<RTPHeaderExtension>> RTPHeaderExtensionExtManual for O {
|
|||
data: &[u8],
|
||||
buffer: &mut gst::BufferRef,
|
||||
) -> bool {
|
||||
let size = data.len() as usize;
|
||||
let size = data.len();
|
||||
unsafe {
|
||||
from_glib(ffi::gst_rtp_header_extension_read(
|
||||
self.as_ref().to_glib_none().0,
|
||||
|
@ -57,7 +57,7 @@ impl<O: IsA<RTPHeaderExtension>> RTPHeaderExtensionExtManual for O {
|
|||
output: &mut gst::BufferRef,
|
||||
data: &mut [u8],
|
||||
) -> Result<usize, glib::BoolError> {
|
||||
let size = data.len() as usize;
|
||||
let size = data.len();
|
||||
unsafe {
|
||||
let res = ffi::gst_rtp_header_extension_write(
|
||||
self.as_ref().to_glib_none().0,
|
||||
|
|
Loading…
Reference in a new issue