mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 19:11: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],
|
data: &[u8],
|
||||||
buffer: &mut gst::BufferRef,
|
buffer: &mut gst::BufferRef,
|
||||||
) -> bool {
|
) -> bool {
|
||||||
let size = data.len() as usize;
|
let size = data.len();
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(ffi::gst_rtp_header_extension_read(
|
from_glib(ffi::gst_rtp_header_extension_read(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
@ -57,7 +57,7 @@ impl<O: IsA<RTPHeaderExtension>> RTPHeaderExtensionExtManual for O {
|
||||||
output: &mut gst::BufferRef,
|
output: &mut gst::BufferRef,
|
||||||
data: &mut [u8],
|
data: &mut [u8],
|
||||||
) -> Result<usize, glib::BoolError> {
|
) -> Result<usize, glib::BoolError> {
|
||||||
let size = data.len() as usize;
|
let size = data.len();
|
||||||
unsafe {
|
unsafe {
|
||||||
let res = ffi::gst_rtp_header_extension_write(
|
let res = ffi::gst_rtp_header_extension_write(
|
||||||
self.as_ref().to_glib_none().0,
|
self.as_ref().to_glib_none().0,
|
||||||
|
|
Loading…
Reference in a new issue