From 0147f03344f06a428c9c0cd49a372a101d7c42f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 26 May 2019 18:31:21 +0200 Subject: [PATCH] audio: Cast fewer points to *mut pointers in pack/unpack func bindings --- gstreamer-audio/src/audio_format_info.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gstreamer-audio/src/audio_format_info.rs b/gstreamer-audio/src/audio_format_info.rs index 673fa265e..2ec3526a6 100644 --- a/gstreamer-audio/src/audio_format_info.rs +++ b/gstreamer-audio/src/audio_format_info.rs @@ -126,7 +126,7 @@ impl AudioFormatInfo { self.0, flags.to_glib(), dest.as_mut_ptr() as *mut _, - src.as_ptr() as *mut _, + src.as_ptr() as *const _, nsamples as i32, ); } @@ -159,7 +159,7 @@ impl AudioFormatInfo { (self.0.pack_func.as_ref().unwrap())( self.0, flags.to_glib(), - src.as_ptr() as *mut _, + src.as_ptr() as *const _, dest.as_mut_ptr() as *mut _, nsamples as i32, );