audio: Cast fewer points to *mut pointers in pack/unpack func bindings

This commit is contained in:
Sebastian Dröge 2019-05-26 18:31:21 +02:00
parent 1c1533d076
commit 0147f03344

View file

@ -126,7 +126,7 @@ impl AudioFormatInfo {
self.0, self.0,
flags.to_glib(), flags.to_glib(),
dest.as_mut_ptr() as *mut _, dest.as_mut_ptr() as *mut _,
src.as_ptr() as *mut _, src.as_ptr() as *const _,
nsamples as i32, nsamples as i32,
); );
} }
@ -159,7 +159,7 @@ impl AudioFormatInfo {
(self.0.pack_func.as_ref().unwrap())( (self.0.pack_func.as_ref().unwrap())(
self.0, self.0,
flags.to_glib(), flags.to_glib(),
src.as_ptr() as *mut _, src.as_ptr() as *const _,
dest.as_mut_ptr() as *mut _, dest.as_mut_ptr() as *mut _,
nsamples as i32, nsamples as i32,
); );