mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-23 01:51:06 +00:00
Fix some more new clippy warnings
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1168>
This commit is contained in:
parent
212d09aee3
commit
d6cc1e0aa1
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