diff --git a/gstreamer-base/src/subclass/aggregator.rs b/gstreamer-base/src/subclass/aggregator.rs index 1270e384c..916b85393 100644 --- a/gstreamer-base/src/subclass/aggregator.rs +++ b/gstreamer-base/src/subclass/aggregator.rs @@ -384,7 +384,7 @@ where fn override_vfuncs(&mut self) { >::override_vfuncs(self); unsafe { - let klass = &mut *(self as *const Self as *mut ffi::GstAggregatorClass); + let klass = &mut *(self as *mut Self as *mut ffi::GstAggregatorClass); klass.flush = Some(aggregator_flush::); klass.clip = Some(aggregator_clip::); klass.finish_buffer = Some(aggregator_finish_buffer::); diff --git a/gstreamer-base/src/subclass/aggregator_pad.rs b/gstreamer-base/src/subclass/aggregator_pad.rs index f0cf9d9b2..09254c907 100644 --- a/gstreamer-base/src/subclass/aggregator_pad.rs +++ b/gstreamer-base/src/subclass/aggregator_pad.rs @@ -87,7 +87,7 @@ unsafe impl IsSubclassable for Aggrega fn override_vfuncs(&mut self) { >::override_vfuncs(self); unsafe { - let klass = &mut *(self as *const Self as *mut ffi::GstAggregatorPadClass); + let klass = &mut *(self as *mut Self as *mut ffi::GstAggregatorPadClass); klass.flush = Some(aggregator_pad_flush::); klass.skip_buffer = Some(aggregator_pad_skip_buffer::); } diff --git a/gstreamer-base/src/subclass/base_sink.rs b/gstreamer-base/src/subclass/base_sink.rs index 7e54ea326..89e67ffc3 100644 --- a/gstreamer-base/src/subclass/base_sink.rs +++ b/gstreamer-base/src/subclass/base_sink.rs @@ -169,7 +169,7 @@ where fn override_vfuncs(&mut self) { >::override_vfuncs(self); unsafe { - let klass = &mut *(self as *const Self as *mut ffi::GstBaseSinkClass); + let klass = &mut *(self as *mut Self as *mut ffi::GstBaseSinkClass); klass.start = Some(base_sink_start::); klass.stop = Some(base_sink_stop::); klass.render = Some(base_sink_render::); diff --git a/gstreamer-base/src/subclass/base_src.rs b/gstreamer-base/src/subclass/base_src.rs index 8d5e383a9..8f707c4f0 100644 --- a/gstreamer-base/src/subclass/base_src.rs +++ b/gstreamer-base/src/subclass/base_src.rs @@ -215,7 +215,7 @@ where fn override_vfuncs(&mut self) { >::override_vfuncs(self); unsafe { - let klass = &mut *(self as *const Self as *mut ffi::GstBaseSrcClass); + let klass = &mut *(self as *mut Self as *mut ffi::GstBaseSrcClass); klass.start = Some(base_src_start::); klass.stop = Some(base_src_stop::); klass.is_seekable = Some(base_src_is_seekable::); diff --git a/gstreamer-base/src/subclass/base_transform.rs b/gstreamer-base/src/subclass/base_transform.rs index 83ea35b11..d4ba53570 100644 --- a/gstreamer-base/src/subclass/base_transform.rs +++ b/gstreamer-base/src/subclass/base_transform.rs @@ -282,7 +282,7 @@ where fn override_vfuncs(&mut self) { >::override_vfuncs(self); unsafe { - let klass = &mut *(self as *const Self as *mut ffi::GstBaseTransformClass); + let klass = &mut *(self as *mut Self as *mut ffi::GstBaseTransformClass); klass.start = Some(base_transform_start::); klass.stop = Some(base_transform_stop::); klass.transform_caps = Some(base_transform_transform_caps::); @@ -309,7 +309,7 @@ pub unsafe trait BaseTransformClassSubclassExt: Sized + 'static { ::Instance: PanicPoison, { unsafe { - let klass = &mut *(self as *const Self as *mut ffi::GstBaseTransformClass); + let klass = &mut *(self as *mut Self as *mut ffi::GstBaseTransformClass); klass.passthrough_on_same_caps = passthrough_on_same_caps.to_glib(); klass.transform_ip_on_passthrough = transform_ip_on_passthrough.to_glib(); diff --git a/gstreamer/src/subclass/bin.rs b/gstreamer/src/subclass/bin.rs index 22f949ad5..9ece1a8c2 100644 --- a/gstreamer/src/subclass/bin.rs +++ b/gstreamer/src/subclass/bin.rs @@ -72,7 +72,7 @@ where fn override_vfuncs(&mut self) { <::ElementClass as IsSubclassable>::override_vfuncs(self); unsafe { - let klass = &mut *(self as *const Self as *mut ffi::GstBinClass); + let klass = &mut *(self as *mut Self as *mut ffi::GstBinClass); klass.add_element = Some(bin_add_element::); klass.remove_element = Some(bin_remove_element::); klass.handle_message = Some(bin_handle_message::); diff --git a/gstreamer/src/subclass/element.rs b/gstreamer/src/subclass/element.rs index 54c8b9381..0293d84b0 100644 --- a/gstreamer/src/subclass/element.rs +++ b/gstreamer/src/subclass/element.rs @@ -185,7 +185,7 @@ pub unsafe trait ElementClassSubclassExt: Sized + 'static { fn add_pad_template(&mut self, pad_template: PadTemplate) { unsafe { ffi::gst_element_class_add_pad_template( - self as *const Self as *mut ffi::GstElementClass, + self as *mut Self as *mut ffi::GstElementClass, pad_template.to_glib_none().0, ); } @@ -200,7 +200,7 @@ pub unsafe trait ElementClassSubclassExt: Sized + 'static { ) { unsafe { ffi::gst_element_class_set_metadata( - self as *const Self as *mut ffi::GstElementClass, + self as *mut Self as *mut ffi::GstElementClass, long_name.to_glib_none().0, classification.to_glib_none().0, description.to_glib_none().0, @@ -220,7 +220,7 @@ where >::override_vfuncs(self); unsafe { - let klass = &mut *(self as *const Self as *mut ffi::GstElementClass); + let klass = &mut *(self as *mut Self as *mut ffi::GstElementClass); klass.change_state = Some(element_change_state::); klass.request_new_pad = Some(element_request_new_pad::); klass.release_pad = Some(element_release_pad::); diff --git a/gstreamer/src/subclass/ghost_pad.rs b/gstreamer/src/subclass/ghost_pad.rs index 9469ef820..d9aca2648 100644 --- a/gstreamer/src/subclass/ghost_pad.rs +++ b/gstreamer/src/subclass/ghost_pad.rs @@ -19,7 +19,7 @@ unsafe impl IsSubclassable for GhostPadClas fn override_vfuncs(&mut self) { <::PadClass as IsSubclassable>::override_vfuncs(self); unsafe { - let _klass = &mut *(self as *const Self as *mut ffi::GstGhostPadClass); + let _klass = &mut *(self as *mut Self as *mut ffi::GstGhostPadClass); // Nothing to do here } } diff --git a/gstreamer/src/subclass/pad.rs b/gstreamer/src/subclass/pad.rs index 8fb901576..605b1a1db 100644 --- a/gstreamer/src/subclass/pad.rs +++ b/gstreamer/src/subclass/pad.rs @@ -55,7 +55,7 @@ unsafe impl IsSubclassable for PadClass { >::override_vfuncs(self); unsafe { - let klass = &mut *(self as *const Self as *mut ffi::GstPadClass); + let klass = &mut *(self as *mut Self as *mut ffi::GstPadClass); klass.linked = Some(pad_linked::); klass.unlinked = Some(pad_unlinked::); } diff --git a/gstreamer/src/subclass/pipeline.rs b/gstreamer/src/subclass/pipeline.rs index b46edcbe5..062fb2310 100644 --- a/gstreamer/src/subclass/pipeline.rs +++ b/gstreamer/src/subclass/pipeline.rs @@ -22,7 +22,7 @@ where fn override_vfuncs(&mut self) { <::BinClass as IsSubclassable>::override_vfuncs(self); unsafe { - let _klass = &mut *(self as *const Self as *mut ffi::GstPipelineClass); + let _klass = &mut *(self as *mut Self as *mut ffi::GstPipelineClass); // Nothing to do here } }