From bbcd221e8d3ed3e6361ebf63ea4829b5569d8883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 28 Dec 2021 17:50:06 +0200 Subject: [PATCH] Change from impl_() to imp() --- gstreamer-audio/src/subclass/audio_decoder.rs | 34 +++++------ gstreamer-audio/src/subclass/audio_encoder.rs | 32 +++++----- gstreamer-audio/src/subclass/audio_sink.rs | 14 ++--- gstreamer-audio/src/subclass/audio_src.rs | 14 ++--- gstreamer-base/src/subclass/aggregator.rs | 46 +++++++------- gstreamer-base/src/subclass/aggregator_pad.rs | 4 +- gstreamer-base/src/subclass/base_parse.rs | 10 ++-- gstreamer-base/src/subclass/base_sink.rs | 28 ++++----- gstreamer-base/src/subclass/base_src.rs | 36 +++++------ gstreamer-base/src/subclass/base_transform.rs | 42 ++++++------- gstreamer-base/src/subclass/push_src.rs | 6 +- gstreamer-gl/src/subclass/gl_base_filter.rs | 6 +- gstreamer-gl/src/subclass/gl_base_src.rs | 6 +- gstreamer-gl/src/subclass/gl_filter.rs | 10 ++-- .../src/subclass/player_video_renderer.rs | 2 +- .../src/subclass/rtsp_client.rs | 60 +++++++++---------- .../src/subclass/rtsp_media.rs | 34 +++++------ .../src/subclass/rtsp_media_factory.rs | 14 ++--- .../src/subclass/rtsp_mount_points.rs | 2 +- .../src/subclass/rtsp_server.rs | 4 +- gstreamer-video/src/subclass/navigation.rs | 2 +- gstreamer-video/src/subclass/video_decoder.rs | 38 ++++++------ gstreamer-video/src/subclass/video_encoder.rs | 32 +++++----- gstreamer-video/src/subclass/video_filter.rs | 6 +- gstreamer-video/src/subclass/video_sink.rs | 2 +- gstreamer/src/subclass/bin.rs | 6 +- gstreamer/src/subclass/child_proxy.rs | 10 ++-- gstreamer/src/subclass/clock.rs | 12 ++-- gstreamer/src/subclass/device.rs | 4 +- gstreamer/src/subclass/device_provider.rs | 6 +- gstreamer/src/subclass/element.rs | 22 +++---- gstreamer/src/subclass/pad.rs | 4 +- gstreamer/src/subclass/uri_handler.rs | 4 +- 33 files changed, 276 insertions(+), 276 deletions(-) diff --git a/gstreamer-audio/src/subclass/audio_decoder.rs b/gstreamer-audio/src/subclass/audio_decoder.rs index f178d6d3b..391a1da74 100644 --- a/gstreamer-audio/src/subclass/audio_decoder.rs +++ b/gstreamer-audio/src/subclass/audio_decoder.rs @@ -542,7 +542,7 @@ unsafe extern "C" fn audio_decoder_open( ptr: *mut ffi::GstAudioDecoder, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -561,7 +561,7 @@ unsafe extern "C" fn audio_decoder_close( ptr: *mut ffi::GstAudioDecoder, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -580,7 +580,7 @@ unsafe extern "C" fn audio_decoder_start( ptr: *mut ffi::GstAudioDecoder, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -599,7 +599,7 @@ unsafe extern "C" fn audio_decoder_stop( ptr: *mut ffi::GstAudioDecoder, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -619,7 +619,7 @@ unsafe extern "C" fn audio_decoder_set_format( caps: *mut gst::ffi::GstCaps, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -641,7 +641,7 @@ unsafe extern "C" fn audio_decoder_parse( len: *mut i32, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), gst::FlowReturn::Error, { @@ -667,7 +667,7 @@ unsafe extern "C" fn audio_decoder_handle_frame( // FIXME: Misgenerated in gstreamer-audio-sys let buffer = buffer as *mut gst::ffi::GstBuffer; let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), gst::FlowReturn::Error, { @@ -685,7 +685,7 @@ unsafe extern "C" fn audio_decoder_pre_push( buffer: *mut *mut gst::ffi::GstBuffer, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), gst::FlowReturn::Error, { @@ -710,7 +710,7 @@ unsafe extern "C" fn audio_decoder_flush( hard: glib::ffi::gboolean, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), (), { @@ -722,7 +722,7 @@ unsafe extern "C" fn audio_decoder_negotiate( ptr: *mut ffi::GstAudioDecoder, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -742,7 +742,7 @@ unsafe extern "C" fn audio_decoder_getcaps( filter: *mut gst::ffi::GstCaps, ) -> *mut gst::ffi::GstCaps { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), gst::Caps::new_empty(), { @@ -762,7 +762,7 @@ unsafe extern "C" fn audio_decoder_sink_event( event: *mut gst::ffi::GstEvent, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -776,7 +776,7 @@ unsafe extern "C" fn audio_decoder_sink_query( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -790,7 +790,7 @@ unsafe extern "C" fn audio_decoder_src_event( event: *mut gst::ffi::GstEvent, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -804,7 +804,7 @@ unsafe extern "C" fn audio_decoder_src_query( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -818,7 +818,7 @@ unsafe extern "C" fn audio_decoder_propose_allocation( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let query = match gst::QueryRef::from_mut_ptr(query).view_mut() { gst::QueryView::Allocation(allocation) => allocation, @@ -842,7 +842,7 @@ unsafe extern "C" fn audio_decoder_decide_allocation( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let query = match gst::QueryRef::from_mut_ptr(query).view_mut() { gst::QueryView::Allocation(allocation) => allocation, diff --git a/gstreamer-audio/src/subclass/audio_encoder.rs b/gstreamer-audio/src/subclass/audio_encoder.rs index 47d1d1615..b2e5627be 100644 --- a/gstreamer-audio/src/subclass/audio_encoder.rs +++ b/gstreamer-audio/src/subclass/audio_encoder.rs @@ -491,7 +491,7 @@ unsafe extern "C" fn audio_encoder_open( ptr: *mut ffi::GstAudioEncoder, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -510,7 +510,7 @@ unsafe extern "C" fn audio_encoder_close( ptr: *mut ffi::GstAudioEncoder, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -529,7 +529,7 @@ unsafe extern "C" fn audio_encoder_start( ptr: *mut ffi::GstAudioEncoder, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -548,7 +548,7 @@ unsafe extern "C" fn audio_encoder_stop( ptr: *mut ffi::GstAudioEncoder, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -568,7 +568,7 @@ unsafe extern "C" fn audio_encoder_set_format( info: *mut ffi::GstAudioInfo, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -590,7 +590,7 @@ unsafe extern "C" fn audio_encoder_handle_frame( // FIXME: Misgenerated in gstreamer-audio-sys let buffer = buffer as *mut gst::ffi::GstBuffer; let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), gst::FlowReturn::Error, { @@ -608,7 +608,7 @@ unsafe extern "C" fn audio_encoder_pre_push( buffer: *mut *mut gst::ffi::GstBuffer, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), gst::FlowReturn::Error, { @@ -630,7 +630,7 @@ unsafe extern "C" fn audio_encoder_pre_push( unsafe extern "C" fn audio_encoder_flush(ptr: *mut ffi::GstAudioEncoder) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), (), { @@ -642,7 +642,7 @@ unsafe extern "C" fn audio_encoder_negotiate( ptr: *mut ffi::GstAudioEncoder, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -662,7 +662,7 @@ unsafe extern "C" fn audio_encoder_getcaps( filter: *mut gst::ffi::GstCaps, ) -> *mut gst::ffi::GstCaps { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), gst::Caps::new_empty(), { @@ -682,7 +682,7 @@ unsafe extern "C" fn audio_encoder_sink_event( event: *mut gst::ffi::GstEvent, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -696,7 +696,7 @@ unsafe extern "C" fn audio_encoder_sink_query( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -710,7 +710,7 @@ unsafe extern "C" fn audio_encoder_src_event( event: *mut gst::ffi::GstEvent, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -724,7 +724,7 @@ unsafe extern "C" fn audio_encoder_src_query( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -738,7 +738,7 @@ unsafe extern "C" fn audio_encoder_propose_allocation( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let query = match gst::QueryRef::from_mut_ptr(query).view_mut() { gst::QueryView::Allocation(allocation) => allocation, @@ -762,7 +762,7 @@ unsafe extern "C" fn audio_encoder_decide_allocation( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let query = match gst::QueryRef::from_mut_ptr(query).view_mut() { gst::QueryView::Allocation(allocation) => allocation, diff --git a/gstreamer-audio/src/subclass/audio_sink.rs b/gstreamer-audio/src/subclass/audio_sink.rs index d85227401..bc9c5a0cf 100644 --- a/gstreamer-audio/src/subclass/audio_sink.rs +++ b/gstreamer-audio/src/subclass/audio_sink.rs @@ -201,7 +201,7 @@ unsafe extern "C" fn audiosink_close( ptr: *mut ffi::GstAudioSink, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -218,7 +218,7 @@ unsafe extern "C" fn audiosink_close( unsafe extern "C" fn audiosink_delay(ptr: *mut ffi::GstAudioSink) -> u32 { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), 0, { @@ -230,7 +230,7 @@ unsafe extern "C" fn audiosink_open( ptr: *mut ffi::GstAudioSink, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -250,7 +250,7 @@ unsafe extern "C" fn audiosink_prepare( spec: *mut ffi::GstAudioRingBufferSpec, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let spec = &mut *(spec as *mut AudioRingBufferSpec); @@ -271,7 +271,7 @@ unsafe extern "C" fn audiosink_unprepare( ptr: *mut ffi::GstAudioSink, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -292,7 +292,7 @@ unsafe extern "C" fn audiosink_write( length: u32, ) -> i32 { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let data_slice = std::slice::from_raw_parts(data as *const u8, length as usize); @@ -303,7 +303,7 @@ unsafe extern "C" fn audiosink_write( unsafe extern "C" fn audiosink_reset(ptr: *mut ffi::GstAudioSink) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), (), { diff --git a/gstreamer-audio/src/subclass/audio_src.rs b/gstreamer-audio/src/subclass/audio_src.rs index 1cb52f93a..7f0fcff36 100644 --- a/gstreamer-audio/src/subclass/audio_src.rs +++ b/gstreamer-audio/src/subclass/audio_src.rs @@ -217,7 +217,7 @@ unsafe extern "C" fn audiosrc_close( ptr: *mut ffi::GstAudioSrc, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -234,7 +234,7 @@ unsafe extern "C" fn audiosrc_close( unsafe extern "C" fn audiosrc_delay(ptr: *mut ffi::GstAudioSrc) -> u32 { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), 0, { @@ -246,7 +246,7 @@ unsafe extern "C" fn audiosrc_open( ptr: *mut ffi::GstAudioSrc, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -266,7 +266,7 @@ unsafe extern "C" fn audiosrc_prepare( spec: *mut ffi::GstAudioRingBufferSpec, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let spec = &mut *(spec as *mut AudioRingBufferSpec); @@ -287,7 +287,7 @@ unsafe extern "C" fn audiosrc_unprepare( ptr: *mut ffi::GstAudioSrc, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -309,7 +309,7 @@ unsafe extern "C" fn audiosrc_read( timestamp: *mut gst::ffi::GstClockTime, ) -> u32 { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let data_slice = std::slice::from_raw_parts_mut(data as *mut u8, length as usize); @@ -325,7 +325,7 @@ unsafe extern "C" fn audiosrc_read( unsafe extern "C" fn audiosrc_reset(ptr: *mut ffi::GstAudioSrc) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), (), { diff --git a/gstreamer-base/src/subclass/aggregator.rs b/gstreamer-base/src/subclass/aggregator.rs index d755f142c..148d8d3b7 100644 --- a/gstreamer-base/src/subclass/aggregator.rs +++ b/gstreamer-base/src/subclass/aggregator.rs @@ -821,7 +821,7 @@ unsafe extern "C" fn aggregator_flush( ptr: *mut ffi::GstAggregator, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), gst::FlowReturn::Error, { @@ -836,7 +836,7 @@ unsafe extern "C" fn aggregator_clip( buffer: *mut gst::ffi::GstBuffer, ) -> *mut gst::ffi::GstBuffer { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let ret = gst::panic_to_error!(&wrap, imp.panicked(), None, { @@ -855,7 +855,7 @@ unsafe extern "C" fn aggregator_finish_buffer( buffer: *mut gst::ffi::GstBuffer, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), gst::FlowReturn::Error, { @@ -872,7 +872,7 @@ unsafe extern "C" fn aggregator_finish_buffer_list( buffer_list: *mut gst::ffi::GstBufferList, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), gst::FlowReturn::Error, { @@ -888,7 +888,7 @@ unsafe extern "C" fn aggregator_sink_event( event: *mut gst::ffi::GstEvent, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(wrap, imp.panicked(), false, { @@ -909,7 +909,7 @@ unsafe extern "C" fn aggregator_sink_event_pre_queue( event: *mut gst::ffi::GstEvent, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), gst::FlowReturn::Error, { @@ -929,7 +929,7 @@ unsafe extern "C" fn aggregator_sink_query( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -950,7 +950,7 @@ unsafe extern "C" fn aggregator_sink_query_pre_queue( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -968,7 +968,7 @@ unsafe extern "C" fn aggregator_src_event( event: *mut gst::ffi::GstEvent, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -982,7 +982,7 @@ unsafe extern "C" fn aggregator_src_query( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -997,7 +997,7 @@ unsafe extern "C" fn aggregator_src_activate( active: glib::ffi::gboolean, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -1017,7 +1017,7 @@ unsafe extern "C" fn aggregator_aggregate( timeout: glib::ffi::gboolean, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), gst::FlowReturn::Error, { @@ -1031,7 +1031,7 @@ unsafe extern "C" fn aggregator_start( ptr: *mut ffi::GstAggregator, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -1050,7 +1050,7 @@ unsafe extern "C" fn aggregator_stop( ptr: *mut ffi::GstAggregator, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -1069,7 +1069,7 @@ unsafe extern "C" fn aggregator_get_next_time( ptr: *mut ffi::GstAggregator, ) -> gst::ffi::GstClockTime { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), gst::ClockTime::NONE, { @@ -1085,7 +1085,7 @@ unsafe extern "C" fn aggregator_create_new_pad( caps: *const gst::ffi::GstCaps, ) -> *mut ffi::GstAggregatorPad { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), None, { @@ -1109,7 +1109,7 @@ unsafe extern "C" fn aggregator_update_src_caps( res: *mut *mut gst::ffi::GstCaps, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); *res = ptr::null_mut(); @@ -1131,7 +1131,7 @@ unsafe extern "C" fn aggregator_fixate_src_caps( caps: *mut gst::ffi::GstCaps, ) -> *mut gst::ffi::GstCaps { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), gst::Caps::new_empty(), { @@ -1145,7 +1145,7 @@ unsafe extern "C" fn aggregator_negotiated_src_caps( caps: *mut gst::ffi::GstCaps, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -1167,7 +1167,7 @@ unsafe extern "C" fn aggregator_propose_allocation( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let decide_query = if decide_query.is_null() { None @@ -1204,7 +1204,7 @@ unsafe extern "C" fn aggregator_decide_allocation( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let query = match gst::QueryRef::from_mut_ptr(query).view_mut() { gst::QueryView::Allocation(allocation) => allocation, @@ -1229,7 +1229,7 @@ unsafe extern "C" fn aggregator_negotiate( ptr: *mut ffi::GstAggregator, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -1245,7 +1245,7 @@ unsafe extern "C" fn aggregator_peek_next_sample( pad: *mut ffi::GstAggregatorPad, ) -> *mut gst::ffi::GstSample { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), None, { diff --git a/gstreamer-base/src/subclass/aggregator_pad.rs b/gstreamer-base/src/subclass/aggregator_pad.rs index 33a9f2eab..25c2e3b1c 100644 --- a/gstreamer-base/src/subclass/aggregator_pad.rs +++ b/gstreamer-base/src/subclass/aggregator_pad.rs @@ -105,7 +105,7 @@ unsafe extern "C" fn aggregator_pad_flush( aggregator: *mut ffi::GstAggregator, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let res: gst::FlowReturn = imp @@ -120,7 +120,7 @@ unsafe extern "C" fn aggregator_pad_skip_buffer( buffer: *mut gst::ffi::GstBuffer, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.skip_buffer( diff --git a/gstreamer-base/src/subclass/base_parse.rs b/gstreamer-base/src/subclass/base_parse.rs index 4e6094811..bad0f351c 100644 --- a/gstreamer-base/src/subclass/base_parse.rs +++ b/gstreamer-base/src/subclass/base_parse.rs @@ -209,7 +209,7 @@ unsafe extern "C" fn base_parse_start( ptr: *mut ffi::GstBaseParse, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -228,7 +228,7 @@ unsafe extern "C" fn base_parse_stop( ptr: *mut ffi::GstBaseParse, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -248,7 +248,7 @@ unsafe extern "C" fn base_parse_set_sink_caps( caps: *mut gst::ffi::GstCaps, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let caps: Borrowed = from_glib_borrow(caps); @@ -270,7 +270,7 @@ unsafe extern "C" fn base_parse_handle_frame( skipsize: *mut i32, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let wrap_frame = BaseParseFrame::new(frame, &wrap); @@ -296,7 +296,7 @@ unsafe extern "C" fn base_parse_convert( dest_value: *mut i64, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let source = gst::GenericFormattedValue::new(from_glib(source_format), source_value); diff --git a/gstreamer-base/src/subclass/base_sink.rs b/gstreamer-base/src/subclass/base_sink.rs index ffdbc1667..9ea8fbf92 100644 --- a/gstreamer-base/src/subclass/base_sink.rs +++ b/gstreamer-base/src/subclass/base_sink.rs @@ -450,7 +450,7 @@ unsafe extern "C" fn base_sink_start( ptr: *mut ffi::GstBaseSink, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -469,7 +469,7 @@ unsafe extern "C" fn base_sink_stop( ptr: *mut ffi::GstBaseSink, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -489,7 +489,7 @@ unsafe extern "C" fn base_sink_render( buffer: *mut gst::ffi::GstBuffer, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let buffer = from_glib_borrow(buffer); @@ -504,7 +504,7 @@ unsafe extern "C" fn base_sink_prepare( buffer: *mut gst::ffi::GstBuffer, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let buffer = from_glib_borrow(buffer); @@ -519,7 +519,7 @@ unsafe extern "C" fn base_sink_render_list( list: *mut gst::ffi::GstBufferList, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let list = from_glib_borrow(list); @@ -534,7 +534,7 @@ unsafe extern "C" fn base_sink_prepare_list( list: *mut gst::ffi::GstBufferList, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let list = from_glib_borrow(list); @@ -549,7 +549,7 @@ unsafe extern "C" fn base_sink_query( query_ptr: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let query = gst::QueryRef::from_mut_ptr(query_ptr); @@ -564,7 +564,7 @@ unsafe extern "C" fn base_sink_event( event_ptr: *mut gst::ffi::GstEvent, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -578,7 +578,7 @@ unsafe extern "C" fn base_sink_get_caps( filter: *mut gst::ffi::GstCaps, ) -> *mut gst::ffi::GstCaps { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let filter = Option::::from_glib_borrow(filter); @@ -594,7 +594,7 @@ unsafe extern "C" fn base_sink_set_caps( caps: *mut gst::ffi::GstCaps, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let caps = from_glib_borrow(caps); @@ -615,7 +615,7 @@ unsafe extern "C" fn base_sink_fixate( caps: *mut gst::ffi::GstCaps, ) -> *mut gst::ffi::GstCaps { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let caps = from_glib_full(caps); @@ -629,7 +629,7 @@ unsafe extern "C" fn base_sink_unlock( ptr: *mut ffi::GstBaseSink, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -648,7 +648,7 @@ unsafe extern "C" fn base_sink_unlock_stop( ptr: *mut ffi::GstBaseSink, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -668,7 +668,7 @@ unsafe extern "C" fn base_sink_propose_allocation( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let query = match gst::QueryRef::from_mut_ptr(query).view_mut() { gst::QueryView::Allocation(allocation) => allocation, diff --git a/gstreamer-base/src/subclass/base_src.rs b/gstreamer-base/src/subclass/base_src.rs index 97bf536bf..f58657539 100644 --- a/gstreamer-base/src/subclass/base_src.rs +++ b/gstreamer-base/src/subclass/base_src.rs @@ -638,7 +638,7 @@ unsafe extern "C" fn base_src_start( ptr: *mut ffi::GstBaseSrc, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -657,7 +657,7 @@ unsafe extern "C" fn base_src_stop( ptr: *mut ffi::GstBaseSrc, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -676,7 +676,7 @@ unsafe extern "C" fn base_src_is_seekable( ptr: *mut ffi::GstBaseSrc, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -690,7 +690,7 @@ unsafe extern "C" fn base_src_get_size( size: *mut u64, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -712,7 +712,7 @@ unsafe extern "C" fn base_src_get_times( stop: *mut gst::ffi::GstClockTime, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let buffer = gst::BufferRef::from_ptr(buffer); @@ -733,7 +733,7 @@ unsafe extern "C" fn base_src_fill( buffer: *mut gst::ffi::GstBuffer, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let buffer = gst::BufferRef::from_mut_ptr(buffer); @@ -751,7 +751,7 @@ unsafe extern "C" fn base_src_alloc( buffer_ptr: *mut gst::ffi::GstBuffer, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); // FIXME: Wrong signature in -sys bindings // https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys/issues/3 @@ -777,7 +777,7 @@ unsafe extern "C" fn base_src_create( buffer_ptr: *mut gst::ffi::GstBuffer, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); // FIXME: Wrong signature in -sys bindings // https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys/issues/3 @@ -861,7 +861,7 @@ unsafe extern "C" fn base_src_do_seek( segment: *mut gst::ffi::GstSegment, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -879,7 +879,7 @@ unsafe extern "C" fn base_src_query( query_ptr: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let query = gst::QueryRef::from_mut_ptr(query_ptr); @@ -894,7 +894,7 @@ unsafe extern "C" fn base_src_event( event_ptr: *mut gst::ffi::GstEvent, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -908,7 +908,7 @@ unsafe extern "C" fn base_src_get_caps( filter: *mut gst::ffi::GstCaps, ) -> *mut gst::ffi::GstCaps { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let filter = Option::::from_glib_borrow(filter); @@ -923,7 +923,7 @@ unsafe extern "C" fn base_src_negotiate( ptr: *mut ffi::GstBaseSrc, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -943,7 +943,7 @@ unsafe extern "C" fn base_src_set_caps( caps: *mut gst::ffi::GstCaps, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let caps = from_glib_borrow(caps); @@ -964,7 +964,7 @@ unsafe extern "C" fn base_src_fixate( caps: *mut gst::ffi::GstCaps, ) -> *mut gst::ffi::GstCaps { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let caps = from_glib_full(caps); @@ -978,7 +978,7 @@ unsafe extern "C" fn base_src_unlock( ptr: *mut ffi::GstBaseSrc, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -997,7 +997,7 @@ unsafe extern "C" fn base_src_unlock_stop( ptr: *mut ffi::GstBaseSrc, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -1017,7 +1017,7 @@ unsafe extern "C" fn base_src_decide_allocation( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let query = match gst::QueryRef::from_mut_ptr(query).view_mut() { gst::QueryView::Allocation(allocation) => allocation, diff --git a/gstreamer-base/src/subclass/base_transform.rs b/gstreamer-base/src/subclass/base_transform.rs index e72129698..7f2b93424 100644 --- a/gstreamer-base/src/subclass/base_transform.rs +++ b/gstreamer-base/src/subclass/base_transform.rs @@ -979,7 +979,7 @@ unsafe extern "C" fn base_transform_start( ptr: *mut ffi::GstBaseTransform, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -998,7 +998,7 @@ unsafe extern "C" fn base_transform_stop( ptr: *mut ffi::GstBaseTransform, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -1020,7 +1020,7 @@ unsafe extern "C" fn base_transform_transform_caps( filter: *mut gst::ffi::GstCaps, ) -> *mut gst::ffi::GstCaps { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), None, { @@ -1044,7 +1044,7 @@ unsafe extern "C" fn base_transform_fixate_caps( othercaps: *mut gst::ffi::GstCaps, ) -> *mut gst::ffi::GstCaps { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), gst::Caps::new_empty(), { @@ -1064,7 +1064,7 @@ unsafe extern "C" fn base_transform_set_caps( outcaps: *mut gst::ffi::GstCaps, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -1089,7 +1089,7 @@ unsafe extern "C" fn base_transform_accept_caps( caps: *mut gst::ffi::GstCaps, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -1108,7 +1108,7 @@ unsafe extern "C" fn base_transform_query( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -1131,7 +1131,7 @@ unsafe extern "C" fn base_transform_transform_size( othersize: *mut usize, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -1158,7 +1158,7 @@ unsafe extern "C" fn base_transform_get_unit_size( size: *mut usize, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -1179,7 +1179,7 @@ unsafe extern "C" fn base_transform_prepare_output_buffer( outbuf: *mut gst::ffi::GstBuffer, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); // FIXME: Wrong signature in FFI @@ -1223,7 +1223,7 @@ unsafe extern "C" fn base_transform_sink_event( event: *mut gst::ffi::GstEvent, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -1237,7 +1237,7 @@ unsafe extern "C" fn base_transform_src_event( event: *mut gst::ffi::GstEvent, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -1252,7 +1252,7 @@ unsafe extern "C" fn base_transform_transform( outbuf: *mut gst::ffi::GstBuffer, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), gst::FlowReturn::Error, { @@ -1271,7 +1271,7 @@ unsafe extern "C" fn base_transform_transform_ip( buf: *mut *mut gst::ffi::GstBuffer, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); // FIXME: Wrong signature in FFI @@ -1296,7 +1296,7 @@ unsafe extern "C" fn base_transform_transform_meta( inbuf: *mut gst::ffi::GstBuffer, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let inbuf = gst::BufferRef::from_ptr(inbuf); @@ -1318,7 +1318,7 @@ unsafe extern "C" fn base_transform_propose_allocation( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let decide_query = if decide_query.is_null() { None @@ -1350,7 +1350,7 @@ unsafe extern "C" fn base_transform_decide_allocation( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let query = match gst::QueryRef::from_mut_ptr(query).view_mut() { gst::QueryView::Allocation(allocation) => allocation, @@ -1375,7 +1375,7 @@ unsafe extern "C" fn base_transform_copy_metadata( outbuf: *mut gst::ffi::GstBuffer, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); if gst::ffi::gst_mini_object_is_writable(outbuf as *mut _) == glib::ffi::GFALSE { @@ -1409,7 +1409,7 @@ unsafe extern "C" fn base_transform_before_transform( inbuf: *mut gst::ffi::GstBuffer, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), (), { @@ -1423,7 +1423,7 @@ unsafe extern "C" fn base_transform_submit_input_buffer( buf: *mut gst::ffi::GstBuffer, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), gst::FlowReturn::Error, { @@ -1442,7 +1442,7 @@ unsafe extern "C" fn base_transform_generate_output( buf: *mut *mut gst::ffi::GstBuffer, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); *buf = ptr::null_mut(); diff --git a/gstreamer-base/src/subclass/push_src.rs b/gstreamer-base/src/subclass/push_src.rs index 89b16f998..fe9b7c3f4 100644 --- a/gstreamer-base/src/subclass/push_src.rs +++ b/gstreamer-base/src/subclass/push_src.rs @@ -189,7 +189,7 @@ unsafe extern "C" fn push_src_fill( buffer: *mut gst::ffi::GstBuffer, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let buffer = gst::BufferRef::from_mut_ptr(buffer); @@ -204,7 +204,7 @@ unsafe extern "C" fn push_src_alloc( buffer_ptr: *mut gst::ffi::GstBuffer, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); // FIXME: Wrong signature in -sys bindings // https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys/issues/3 @@ -228,7 +228,7 @@ unsafe extern "C" fn push_src_create( buffer_ptr: *mut gst::ffi::GstBuffer, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); // FIXME: Wrong signature in -sys bindings // https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys/issues/3 diff --git a/gstreamer-gl/src/subclass/gl_base_filter.rs b/gstreamer-gl/src/subclass/gl_base_filter.rs index 397a9a1fb..4e0207a6d 100644 --- a/gstreamer-gl/src/subclass/gl_base_filter.rs +++ b/gstreamer-gl/src/subclass/gl_base_filter.rs @@ -116,7 +116,7 @@ unsafe extern "C" fn gl_set_caps( outcaps: *mut GstCaps, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -139,7 +139,7 @@ unsafe extern "C" fn gl_start( ptr: *mut GstGLBaseFilter, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -156,7 +156,7 @@ unsafe extern "C" fn gl_start( unsafe extern "C" fn gl_stop(ptr: *mut GstGLBaseFilter) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), (), { diff --git a/gstreamer-gl/src/subclass/gl_base_src.rs b/gstreamer-gl/src/subclass/gl_base_src.rs index d5a5039d5..63f776408 100644 --- a/gstreamer-gl/src/subclass/gl_base_src.rs +++ b/gstreamer-gl/src/subclass/gl_base_src.rs @@ -106,7 +106,7 @@ unsafe impl IsSubclassable for GLBaseSrc { unsafe extern "C" fn gl_start(ptr: *mut GstGLBaseSrc) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -123,7 +123,7 @@ unsafe extern "C" fn gl_start(ptr: *mut GstGLBaseSrc) -> glib: unsafe extern "C" fn gl_stop(ptr: *mut GstGLBaseSrc) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), (), { @@ -136,7 +136,7 @@ unsafe extern "C" fn fill_gl_memory( memory: *mut GstGLMemory, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { diff --git a/gstreamer-gl/src/subclass/gl_filter.rs b/gstreamer-gl/src/subclass/gl_filter.rs index 34b83932e..59e943aa3 100644 --- a/gstreamer-gl/src/subclass/gl_filter.rs +++ b/gstreamer-gl/src/subclass/gl_filter.rs @@ -254,7 +254,7 @@ unsafe extern "C" fn filter( output: *mut GstBuffer, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -279,7 +279,7 @@ unsafe extern "C" fn filter_texture( output: *mut GstGLMemory, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -300,7 +300,7 @@ unsafe extern "C" fn filter_texture( unsafe extern "C" fn init_fbo(ptr: *mut GstGLFilter) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -321,7 +321,7 @@ unsafe extern "C" fn set_caps( outcaps: *mut gst::ffi::GstCaps, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -348,7 +348,7 @@ unsafe extern "C" fn transform_internal_caps( filter_caps: *mut gst::ffi::GstCaps, ) -> *mut gst::ffi::GstCaps { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), None, { diff --git a/gstreamer-player/src/subclass/player_video_renderer.rs b/gstreamer-player/src/subclass/player_video_renderer.rs index 229d4431b..aa96ad696 100644 --- a/gstreamer-player/src/subclass/player_video_renderer.rs +++ b/gstreamer-player/src/subclass/player_video_renderer.rs @@ -61,7 +61,7 @@ unsafe extern "C" fn video_renderer_create_video_sink(video_renderer).unsafe_cast_ref(), diff --git a/gstreamer-rtsp-server/src/subclass/rtsp_client.rs b/gstreamer-rtsp-server/src/subclass/rtsp_client.rs index 66ade789a..2f88d0ff5 100644 --- a/gstreamer-rtsp-server/src/subclass/rtsp_client.rs +++ b/gstreamer-rtsp-server/src/subclass/rtsp_client.rs @@ -895,7 +895,7 @@ unsafe extern "C" fn client_create_sdp( media: *mut ffi::GstRTSPMedia, ) -> *mut gst_sdp::ffi::GstSDPMessage { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let sdp = @@ -912,7 +912,7 @@ unsafe extern "C" fn client_configure_client_media( ctx: *mut ffi::GstRTSPContext, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); match imp.configure_client_media( @@ -934,7 +934,7 @@ unsafe extern "C" fn client_params_set( ctx: *mut ffi::GstRTSPContext, ) -> gst_rtsp::ffi::GstRTSPResult { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.params_set(wrap.unsafe_cast_ref(), &from_glib_borrow(ctx)) @@ -946,7 +946,7 @@ unsafe extern "C" fn client_params_get( ctx: *mut ffi::GstRTSPContext, ) -> gst_rtsp::ffi::GstRTSPResult { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.params_get(wrap.unsafe_cast_ref(), &from_glib_borrow(ctx)) @@ -958,7 +958,7 @@ unsafe extern "C" fn client_make_path_from_uri( url: *const gst_rtsp::ffi::GstRTSPUrl, ) -> *mut std::os::raw::c_char { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.make_path_from_uri(wrap.unsafe_cast_ref(), &from_glib_borrow(url)) @@ -967,7 +967,7 @@ unsafe extern "C" fn client_make_path_from_uri( unsafe extern "C" fn client_closed(ptr: *mut ffi::GstRTSPClient) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.closed(wrap.unsafe_cast_ref()); @@ -978,7 +978,7 @@ unsafe extern "C" fn client_new_session( session: *mut ffi::GstRTSPSession, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.new_session(wrap.unsafe_cast_ref(), &from_glib_borrow(session)); @@ -989,7 +989,7 @@ unsafe extern "C" fn client_options_request( ctx: *mut ffi::GstRTSPContext, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.options_request(wrap.unsafe_cast_ref(), &from_glib_borrow(ctx)); @@ -1000,7 +1000,7 @@ unsafe extern "C" fn client_describe_request( ctx: *mut ffi::GstRTSPContext, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.describe_request(wrap.unsafe_cast_ref(), &from_glib_borrow(ctx)); @@ -1011,7 +1011,7 @@ unsafe extern "C" fn client_setup_request( ctx: *mut ffi::GstRTSPContext, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.setup_request(wrap.unsafe_cast_ref(), &from_glib_borrow(ctx)); @@ -1022,7 +1022,7 @@ unsafe extern "C" fn client_play_request( ctx: *mut ffi::GstRTSPContext, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.play_request(wrap.unsafe_cast_ref(), &from_glib_borrow(ctx)); @@ -1033,7 +1033,7 @@ unsafe extern "C" fn client_pause_request( ctx: *mut ffi::GstRTSPContext, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.pause_request(wrap.unsafe_cast_ref(), &from_glib_borrow(ctx)); @@ -1044,7 +1044,7 @@ unsafe extern "C" fn client_teardown_request( ctx: *mut ffi::GstRTSPContext, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.teardown_request(wrap.unsafe_cast_ref(), &from_glib_borrow(ctx)); @@ -1055,7 +1055,7 @@ unsafe extern "C" fn client_set_parameter_request( ctx: *mut ffi::GstRTSPContext, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.set_parameter_request(wrap.unsafe_cast_ref(), &from_glib_borrow(ctx)); @@ -1066,7 +1066,7 @@ unsafe extern "C" fn client_get_parameter_request( ctx: *mut ffi::GstRTSPContext, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.parameter_request(wrap.unsafe_cast_ref(), &from_glib_borrow(ctx)); @@ -1077,7 +1077,7 @@ unsafe extern "C" fn client_announce_request( ctx: *mut ffi::GstRTSPContext, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.announce_request(wrap.unsafe_cast_ref(), &from_glib_borrow(ctx)); @@ -1088,7 +1088,7 @@ unsafe extern "C" fn client_record_request( ctx: *mut ffi::GstRTSPContext, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.record_request(wrap.unsafe_cast_ref(), &from_glib_borrow(ctx)); @@ -1099,7 +1099,7 @@ unsafe extern "C" fn client_handle_response( ctx: *mut ffi::GstRTSPContext, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.handle_response(wrap.unsafe_cast_ref(), &from_glib_borrow(ctx)); @@ -1112,7 +1112,7 @@ unsafe extern "C" fn client_handle_sdp( sdp: *mut gst_sdp::ffi::GstSDPMessage, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); match imp.handle_sdp( @@ -1135,7 +1135,7 @@ unsafe extern "C" fn client_check_requirements( arr: *mut *mut std::os::raw::c_char, ) -> *mut std::os::raw::c_char { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.check_requirements( @@ -1151,7 +1151,7 @@ unsafe extern "C" fn client_pre_options_request( ctx: *mut ffi::GstRTSPContext, ) -> gst_rtsp::ffi::GstRTSPStatusCode { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.pre_options_request(wrap.unsafe_cast_ref(), &from_glib_borrow(ctx)) @@ -1163,7 +1163,7 @@ unsafe extern "C" fn client_pre_describe_request( ctx: *mut ffi::GstRTSPContext, ) -> gst_rtsp::ffi::GstRTSPStatusCode { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.pre_describe_request(wrap.unsafe_cast_ref(), &from_glib_borrow(ctx)) @@ -1175,7 +1175,7 @@ unsafe extern "C" fn client_pre_setup_request( ctx: *mut ffi::GstRTSPContext, ) -> gst_rtsp::ffi::GstRTSPStatusCode { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.pre_setup_request(wrap.unsafe_cast_ref(), &from_glib_borrow(ctx)) @@ -1187,7 +1187,7 @@ unsafe extern "C" fn client_pre_play_request( ctx: *mut ffi::GstRTSPContext, ) -> gst_rtsp::ffi::GstRTSPStatusCode { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.pre_play_request(wrap.unsafe_cast_ref(), &from_glib_borrow(ctx)) @@ -1199,7 +1199,7 @@ unsafe extern "C" fn client_pre_pause_request( ctx: *mut ffi::GstRTSPContext, ) -> gst_rtsp::ffi::GstRTSPStatusCode { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.pre_pause_request(wrap.unsafe_cast_ref(), &from_glib_borrow(ctx)) @@ -1211,7 +1211,7 @@ unsafe extern "C" fn client_pre_teardown_request( ctx: *mut ffi::GstRTSPContext, ) -> gst_rtsp::ffi::GstRTSPStatusCode { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.pre_teardown_request(wrap.unsafe_cast_ref(), &from_glib_borrow(ctx)) @@ -1223,7 +1223,7 @@ unsafe extern "C" fn client_pre_set_parameter_request( ctx: *mut ffi::GstRTSPContext, ) -> gst_rtsp::ffi::GstRTSPStatusCode { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.pre_set_parameter_request(wrap.unsafe_cast_ref(), &from_glib_borrow(ctx)) @@ -1235,7 +1235,7 @@ unsafe extern "C" fn client_pre_get_parameter_request( ctx: *mut ffi::GstRTSPContext, ) -> gst_rtsp::ffi::GstRTSPStatusCode { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.pre_get_parameter_request(wrap.unsafe_cast_ref(), &from_glib_borrow(ctx)) @@ -1247,7 +1247,7 @@ unsafe extern "C" fn client_pre_announce_request( ctx: *mut ffi::GstRTSPContext, ) -> gst_rtsp::ffi::GstRTSPStatusCode { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.pre_announce_request(wrap.unsafe_cast_ref(), &from_glib_borrow(ctx)) @@ -1259,7 +1259,7 @@ unsafe extern "C" fn client_pre_record_request( ctx: *mut ffi::GstRTSPContext, ) -> gst_rtsp::ffi::GstRTSPStatusCode { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.pre_record_request(wrap.unsafe_cast_ref(), &from_glib_borrow(ctx)) diff --git a/gstreamer-rtsp-server/src/subclass/rtsp_media.rs b/gstreamer-rtsp-server/src/subclass/rtsp_media.rs index 422c26300..11faa89fe 100644 --- a/gstreamer-rtsp-server/src/subclass/rtsp_media.rs +++ b/gstreamer-rtsp-server/src/subclass/rtsp_media.rs @@ -479,7 +479,7 @@ unsafe extern "C" fn media_handle_message( message: *mut gst::ffi::GstMessage, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.handle_message(wrap.unsafe_cast_ref(), gst::MessageRef::from_ptr(message)) @@ -491,7 +491,7 @@ unsafe extern "C" fn media_prepare( thread: *mut ffi::GstRTSPThread, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); match imp.prepare(wrap.unsafe_cast_ref(), &from_glib_borrow(thread)) { @@ -507,7 +507,7 @@ unsafe extern "C" fn media_unprepare( ptr: *mut ffi::GstRTSPMedia, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); match imp.unprepare(wrap.unsafe_cast_ref()) { @@ -523,7 +523,7 @@ unsafe extern "C" fn media_suspend( ptr: *mut ffi::GstRTSPMedia, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); match imp.suspend(wrap.unsafe_cast_ref()) { @@ -539,7 +539,7 @@ unsafe extern "C" fn media_unsuspend( ptr: *mut ffi::GstRTSPMedia, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); match imp.unsuspend(wrap.unsafe_cast_ref()) { @@ -556,7 +556,7 @@ unsafe extern "C" fn media_query_position( position: *mut i64, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); match imp.query_position(wrap.unsafe_cast_ref()) { @@ -573,7 +573,7 @@ unsafe extern "C" fn media_query_stop( stop: *mut i64, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); match imp.query_stop(wrap.unsafe_cast_ref()) { @@ -589,7 +589,7 @@ unsafe extern "C" fn media_create_rtpbin( ptr: *mut ffi::GstRTSPMedia, ) -> *mut gst::ffi::GstElement { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let res: *mut gst::ffi::GstElement = imp.create_rtpbin(wrap.unsafe_cast_ref()).to_glib_full(); @@ -606,7 +606,7 @@ unsafe extern "C" fn media_setup_rtpbin( rtpbin: *mut gst::ffi::GstElement, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); // If the rtpbin was floating before make sure it is not anymore for now so @@ -635,7 +635,7 @@ unsafe extern "C" fn media_setup_sdp( info: *mut ffi::GstSDPInfo, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); match imp.setup_sdp( @@ -656,7 +656,7 @@ unsafe extern "C" fn media_new_stream( stream: *mut ffi::GstRTSPStream, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.new_stream(wrap.unsafe_cast_ref(), &from_glib_borrow(stream)); @@ -667,7 +667,7 @@ unsafe extern "C" fn media_removed_stream( stream: *mut ffi::GstRTSPStream, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.removed_stream(wrap.unsafe_cast_ref(), &from_glib_borrow(stream)); @@ -675,7 +675,7 @@ unsafe extern "C" fn media_removed_stream( unsafe extern "C" fn media_prepared(ptr: *mut ffi::GstRTSPMedia) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.prepared(wrap.unsafe_cast_ref()); @@ -683,7 +683,7 @@ unsafe extern "C" fn media_prepared(ptr: *mut ffi::GstRTSPMedi unsafe extern "C" fn media_unprepared(ptr: *mut ffi::GstRTSPMedia) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.unprepared(wrap.unsafe_cast_ref()); @@ -694,7 +694,7 @@ unsafe extern "C" fn media_target_state( state: gst::ffi::GstState, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.target_state(wrap.unsafe_cast_ref(), from_glib(state)); @@ -705,7 +705,7 @@ unsafe extern "C" fn media_new_state( state: gst::ffi::GstState, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.new_state(wrap.unsafe_cast_ref(), from_glib(state)); @@ -716,7 +716,7 @@ unsafe extern "C" fn media_handle_sdp( sdp: *mut gst_sdp::ffi::GstSDPMessage, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); match imp.handle_sdp( diff --git a/gstreamer-rtsp-server/src/subclass/rtsp_media_factory.rs b/gstreamer-rtsp-server/src/subclass/rtsp_media_factory.rs index 61d84dafd..e507d8f07 100644 --- a/gstreamer-rtsp-server/src/subclass/rtsp_media_factory.rs +++ b/gstreamer-rtsp-server/src/subclass/rtsp_media_factory.rs @@ -243,7 +243,7 @@ unsafe extern "C" fn factory_gen_key( url: *const gst_rtsp::ffi::GstRTSPUrl, ) -> *mut std::os::raw::c_char { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.gen_key(wrap.unsafe_cast_ref(), &from_glib_borrow(url)) @@ -255,7 +255,7 @@ unsafe extern "C" fn factory_create_element( url: *const gst_rtsp::ffi::GstRTSPUrl, ) -> *mut gst::ffi::GstElement { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let element = imp @@ -270,7 +270,7 @@ unsafe extern "C" fn factory_construct( url: *const gst_rtsp::ffi::GstRTSPUrl, ) -> *mut ffi::GstRTSPMedia { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.construct(wrap.unsafe_cast_ref(), &from_glib_borrow(url)) @@ -287,7 +287,7 @@ unsafe extern "C" fn factory_create_pipeline( Lazy::new(|| glib::Quark::from_string("gstreamer-rs-rtsp-media-pipeline")); let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let pipeline: *mut gst::ffi::GstPipeline = imp @@ -312,7 +312,7 @@ unsafe extern "C" fn factory_configure( media: *mut ffi::GstRTSPMedia, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.configure(wrap.unsafe_cast_ref(), &from_glib_borrow(media)); @@ -323,7 +323,7 @@ unsafe extern "C" fn factory_media_constructed( media: *mut ffi::GstRTSPMedia, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.media_constructed(wrap.unsafe_cast_ref(), &from_glib_borrow(media)); @@ -334,7 +334,7 @@ unsafe extern "C" fn factory_media_configure( media: *mut ffi::GstRTSPMedia, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.media_configure(wrap.unsafe_cast_ref(), &from_glib_borrow(media)); diff --git a/gstreamer-rtsp-server/src/subclass/rtsp_mount_points.rs b/gstreamer-rtsp-server/src/subclass/rtsp_mount_points.rs index 7690d1988..0a26ffe84 100644 --- a/gstreamer-rtsp-server/src/subclass/rtsp_mount_points.rs +++ b/gstreamer-rtsp-server/src/subclass/rtsp_mount_points.rs @@ -61,7 +61,7 @@ unsafe extern "C" fn mount_points_make_path( url: *const GstRTSPUrl, ) -> *mut std::os::raw::c_char { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.make_path(wrap.unsafe_cast_ref(), &from_glib_borrow(url)) diff --git a/gstreamer-rtsp-server/src/subclass/rtsp_server.rs b/gstreamer-rtsp-server/src/subclass/rtsp_server.rs index 0133945a5..6206e0d03 100644 --- a/gstreamer-rtsp-server/src/subclass/rtsp_server.rs +++ b/gstreamer-rtsp-server/src/subclass/rtsp_server.rs @@ -60,7 +60,7 @@ unsafe extern "C" fn server_create_client( ptr: *mut ffi::GstRTSPServer, ) -> *mut ffi::GstRTSPClient { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.create_client(wrap.unsafe_cast_ref()).to_glib_full() @@ -71,7 +71,7 @@ unsafe extern "C" fn server_client_connected( client: *mut ffi::GstRTSPClient, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.client_connected(wrap.unsafe_cast_ref(), &from_glib_borrow(client)); diff --git a/gstreamer-video/src/subclass/navigation.rs b/gstreamer-video/src/subclass/navigation.rs index 488f40bb6..66dc1c646 100644 --- a/gstreamer-video/src/subclass/navigation.rs +++ b/gstreamer-video/src/subclass/navigation.rs @@ -50,7 +50,7 @@ unsafe extern "C" fn navigation_send_event( structure: *mut GstStructure, ) { let instance = &*(nav as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); imp.send_event( from_glib_borrow::<_, Navigation>(nav).unsafe_cast_ref(), diff --git a/gstreamer-video/src/subclass/video_decoder.rs b/gstreamer-video/src/subclass/video_decoder.rs index 41f297990..11ccf0b47 100644 --- a/gstreamer-video/src/subclass/video_decoder.rs +++ b/gstreamer-video/src/subclass/video_decoder.rs @@ -597,7 +597,7 @@ unsafe extern "C" fn video_decoder_open( ptr: *mut ffi::GstVideoDecoder, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -616,7 +616,7 @@ unsafe extern "C" fn video_decoder_close( ptr: *mut ffi::GstVideoDecoder, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -635,7 +635,7 @@ unsafe extern "C" fn video_decoder_start( ptr: *mut ffi::GstVideoDecoder, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -654,7 +654,7 @@ unsafe extern "C" fn video_decoder_stop( ptr: *mut ffi::GstVideoDecoder, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -673,7 +673,7 @@ unsafe extern "C" fn video_decoder_finish( ptr: *mut ffi::GstVideoDecoder, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), gst::FlowReturn::Error, { @@ -686,7 +686,7 @@ unsafe extern "C" fn video_decoder_drain( ptr: *mut ffi::GstVideoDecoder, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), gst::FlowReturn::Error, { @@ -700,7 +700,7 @@ unsafe extern "C" fn video_decoder_set_format( state: *mut ffi::GstVideoCodecState, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); ffi::gst_video_codec_state_ref(state); let wrap_state = VideoCodecState::::new(state); @@ -724,7 +724,7 @@ unsafe extern "C" fn video_decoder_parse( at_eos: glib::ffi::gboolean, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); ffi::gst_video_codec_frame_ref(frame); let wrap_frame = VideoCodecFrame::new(frame, &*wrap); @@ -743,7 +743,7 @@ unsafe extern "C" fn video_decoder_handle_frame( frame: *mut ffi::GstVideoCodecFrame, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let wrap_frame = VideoCodecFrame::new(frame, &*wrap); @@ -757,7 +757,7 @@ unsafe extern "C" fn video_decoder_flush( ptr: *mut ffi::GstVideoDecoder, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -770,7 +770,7 @@ unsafe extern "C" fn video_decoder_negotiate( ptr: *mut ffi::GstVideoDecoder, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -790,7 +790,7 @@ unsafe extern "C" fn video_decoder_getcaps( filter: *mut gst::ffi::GstCaps, ) -> *mut gst::ffi::GstCaps { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), gst::Caps::new_empty(), { @@ -810,7 +810,7 @@ unsafe extern "C" fn video_decoder_sink_event( event: *mut gst::ffi::GstEvent, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -824,7 +824,7 @@ unsafe extern "C" fn video_decoder_sink_query( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -838,7 +838,7 @@ unsafe extern "C" fn video_decoder_src_event( event: *mut gst::ffi::GstEvent, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -852,7 +852,7 @@ unsafe extern "C" fn video_decoder_src_query( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -866,7 +866,7 @@ unsafe extern "C" fn video_decoder_propose_allocation( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let query = match gst::QueryRef::from_mut_ptr(query).view_mut() { gst::QueryView::Allocation(allocation) => allocation, @@ -890,7 +890,7 @@ unsafe extern "C" fn video_decoder_decide_allocation( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let query = match gst::QueryRef::from_mut_ptr(query).view_mut() { gst::QueryView::Allocation(allocation) => allocation, @@ -916,7 +916,7 @@ unsafe extern "C" fn video_decoder_handle_missing_data( duration: gst::ffi::GstClockTime, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), true, { diff --git a/gstreamer-video/src/subclass/video_encoder.rs b/gstreamer-video/src/subclass/video_encoder.rs index d02d46cd1..307846277 100644 --- a/gstreamer-video/src/subclass/video_encoder.rs +++ b/gstreamer-video/src/subclass/video_encoder.rs @@ -483,7 +483,7 @@ unsafe extern "C" fn video_encoder_open( ptr: *mut ffi::GstVideoEncoder, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -502,7 +502,7 @@ unsafe extern "C" fn video_encoder_close( ptr: *mut ffi::GstVideoEncoder, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -521,7 +521,7 @@ unsafe extern "C" fn video_encoder_start( ptr: *mut ffi::GstVideoEncoder, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -540,7 +540,7 @@ unsafe extern "C" fn video_encoder_stop( ptr: *mut ffi::GstVideoEncoder, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -559,7 +559,7 @@ unsafe extern "C" fn video_encoder_finish( ptr: *mut ffi::GstVideoEncoder, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), gst::FlowReturn::Error, { @@ -573,7 +573,7 @@ unsafe extern "C" fn video_encoder_set_format( state: *mut ffi::GstVideoCodecState, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); ffi::gst_video_codec_state_ref(state); let wrap_state = VideoCodecState::::new(state); @@ -595,7 +595,7 @@ unsafe extern "C" fn video_encoder_handle_frame( frame: *mut ffi::GstVideoCodecFrame, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let wrap_frame = VideoCodecFrame::new(frame, &*wrap); @@ -609,7 +609,7 @@ unsafe extern "C" fn video_encoder_flush( ptr: *mut ffi::GstVideoEncoder, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -622,7 +622,7 @@ unsafe extern "C" fn video_encoder_negotiate( ptr: *mut ffi::GstVideoEncoder, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -642,7 +642,7 @@ unsafe extern "C" fn video_encoder_getcaps( filter: *mut gst::ffi::GstCaps, ) -> *mut gst::ffi::GstCaps { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), gst::Caps::new_empty(), { @@ -662,7 +662,7 @@ unsafe extern "C" fn video_encoder_sink_event( event: *mut gst::ffi::GstEvent, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -676,7 +676,7 @@ unsafe extern "C" fn video_encoder_sink_query( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -690,7 +690,7 @@ unsafe extern "C" fn video_encoder_src_event( event: *mut gst::ffi::GstEvent, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -704,7 +704,7 @@ unsafe extern "C" fn video_encoder_src_query( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -718,7 +718,7 @@ unsafe extern "C" fn video_encoder_propose_allocation( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let query = match gst::QueryRef::from_mut_ptr(query).view_mut() { gst::QueryView::Allocation(allocation) => allocation, @@ -742,7 +742,7 @@ unsafe extern "C" fn video_encoder_decide_allocation( query: *mut gst::ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let query = match gst::QueryRef::from_mut_ptr(query).view_mut() { gst::QueryView::Allocation(allocation) => allocation, diff --git a/gstreamer-video/src/subclass/video_filter.rs b/gstreamer-video/src/subclass/video_filter.rs index 2fed33988..3ed9ec2ac 100644 --- a/gstreamer-video/src/subclass/video_filter.rs +++ b/gstreamer-video/src/subclass/video_filter.rs @@ -241,7 +241,7 @@ unsafe extern "C" fn video_filter_set_info( out_info: *mut ffi::GstVideoInfo, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), false, { @@ -268,7 +268,7 @@ unsafe extern "C" fn video_filter_transform_frame( outframe: *mut ffi::GstVideoFrame, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), gst::FlowReturn::Error, { @@ -287,7 +287,7 @@ unsafe extern "C" fn video_filter_transform_frame_ip( frame: *mut ffi::GstVideoFrame, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); gst::panic_to_error!(&wrap, imp.panicked(), gst::FlowReturn::Error, { diff --git a/gstreamer-video/src/subclass/video_sink.rs b/gstreamer-video/src/subclass/video_sink.rs index e32cc5ef4..f7cb9cb56 100644 --- a/gstreamer-video/src/subclass/video_sink.rs +++ b/gstreamer-video/src/subclass/video_sink.rs @@ -60,7 +60,7 @@ unsafe extern "C" fn video_sink_show_frame( buffer: *mut gst::ffi::GstBuffer, ) -> gst::ffi::GstFlowReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let buffer = from_glib_borrow(buffer); diff --git a/gstreamer/src/subclass/bin.rs b/gstreamer/src/subclass/bin.rs index d6fc94ccd..294d365bf 100644 --- a/gstreamer/src/subclass/bin.rs +++ b/gstreamer/src/subclass/bin.rs @@ -113,7 +113,7 @@ unsafe extern "C" fn bin_add_element( element: *mut ffi::GstElement, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); panic_to_error!(&wrap, imp.panicked(), false, { @@ -133,7 +133,7 @@ unsafe extern "C" fn bin_remove_element( element: *mut ffi::GstElement, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); // If we get a floating reference passed simply return FALSE here. It can't be @@ -162,7 +162,7 @@ unsafe extern "C" fn bin_handle_message( message: *mut ffi::GstMessage, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); panic_to_error!(&wrap, imp.panicked(), (), { diff --git a/gstreamer/src/subclass/child_proxy.rs b/gstreamer/src/subclass/child_proxy.rs index 6ebe75014..250e0137e 100644 --- a/gstreamer/src/subclass/child_proxy.rs +++ b/gstreamer/src/subclass/child_proxy.rs @@ -131,7 +131,7 @@ unsafe extern "C" fn child_proxy_get_child_by_name( name: *const libc::c_char, ) -> *mut glib::gobject_ffi::GObject { let instance = &*(child_proxy as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); imp.child_by_name( from_glib_borrow::<_, ChildProxy>(child_proxy).unsafe_cast_ref(), @@ -145,7 +145,7 @@ unsafe extern "C" fn child_proxy_get_child_by_index( index: u32, ) -> *mut glib::gobject_ffi::GObject { let instance = &*(child_proxy as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); imp.child_by_index( from_glib_borrow::<_, ChildProxy>(child_proxy).unsafe_cast_ref(), @@ -158,7 +158,7 @@ unsafe extern "C" fn child_proxy_get_children_count( child_proxy: *mut ffi::GstChildProxy, ) -> u32 { let instance = &*(child_proxy as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); imp.children_count(from_glib_borrow::<_, ChildProxy>(child_proxy).unsafe_cast_ref()) } @@ -169,7 +169,7 @@ unsafe extern "C" fn child_proxy_child_added( name: *const libc::c_char, ) { let instance = &*(child_proxy as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); imp.child_added( from_glib_borrow::<_, ChildProxy>(child_proxy).unsafe_cast_ref(), @@ -184,7 +184,7 @@ unsafe extern "C" fn child_proxy_child_removed( name: *const libc::c_char, ) { let instance = &*(child_proxy as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); imp.child_removed( from_glib_borrow::<_, ChildProxy>(child_proxy).unsafe_cast_ref(), diff --git a/gstreamer/src/subclass/clock.rs b/gstreamer/src/subclass/clock.rs index 6a40e68be..3480c415f 100644 --- a/gstreamer/src/subclass/clock.rs +++ b/gstreamer/src/subclass/clock.rs @@ -251,7 +251,7 @@ unsafe extern "C" fn clock_change_resolution( new_resolution: ffi::GstClockTime, ) -> ffi::GstClockTime { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let old_resolution = match from_glib(old_resolution) { @@ -271,7 +271,7 @@ unsafe extern "C" fn clock_get_resolution( ptr: *mut ffi::GstClock, ) -> ffi::GstClockTime { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.resolution(wrap.unsafe_cast_ref()).into_glib() @@ -281,7 +281,7 @@ unsafe extern "C" fn clock_get_internal_time( ptr: *mut ffi::GstClock, ) -> ffi::GstClockTime { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.internal_time(wrap.unsafe_cast_ref()).into_glib() @@ -293,7 +293,7 @@ unsafe extern "C" fn clock_wait( jitter: *mut ffi::GstClockTimeDiff, ) -> ffi::GstClockReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let (res, j) = imp.wait( @@ -312,7 +312,7 @@ unsafe extern "C" fn clock_wait_async( id: *mut ffi::GstClockEntry, ) -> ffi::GstClockReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); ClockReturn::from(imp.wait_async( @@ -327,7 +327,7 @@ unsafe extern "C" fn clock_unschedule( id: *mut ffi::GstClockEntry, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.unschedule( diff --git a/gstreamer/src/subclass/device.rs b/gstreamer/src/subclass/device.rs index 7f7102314..c2a3a6bd3 100644 --- a/gstreamer/src/subclass/device.rs +++ b/gstreamer/src/subclass/device.rs @@ -114,7 +114,7 @@ unsafe extern "C" fn device_create_element( name: *const libc::c_char, ) -> *mut ffi::GstElement { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); match imp.create_element( @@ -147,7 +147,7 @@ unsafe extern "C" fn device_reconfigure_element( element: *mut ffi::GstElement, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); match imp.reconfigure_element(wrap.unsafe_cast_ref(), &from_glib_borrow(element)) { diff --git a/gstreamer/src/subclass/device_provider.rs b/gstreamer/src/subclass/device_provider.rs index b67f2af2e..74cc01500 100644 --- a/gstreamer/src/subclass/device_provider.rs +++ b/gstreamer/src/subclass/device_provider.rs @@ -176,7 +176,7 @@ unsafe extern "C" fn device_provider_probe( ptr: *mut ffi::GstDeviceProvider, ) -> *mut glib::ffi::GList { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.probe(wrap.unsafe_cast_ref()).to_glib_full() @@ -186,7 +186,7 @@ unsafe extern "C" fn device_provider_start( ptr: *mut ffi::GstDeviceProvider, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); match imp.start(wrap.unsafe_cast_ref()) { @@ -201,7 +201,7 @@ unsafe extern "C" fn device_provider_start( unsafe extern "C" fn device_provider_stop(ptr: *mut ffi::GstDeviceProvider) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.stop(wrap.unsafe_cast_ref()); diff --git a/gstreamer/src/subclass/element.rs b/gstreamer/src/subclass/element.rs index 8ee31ad64..30040ce92 100644 --- a/gstreamer/src/subclass/element.rs +++ b/gstreamer/src/subclass/element.rs @@ -348,7 +348,7 @@ impl ElementImplExt for T { assert!(element.type_().is_a(T::type_())); let ptr: *mut ffi::GstElement = element.as_ptr() as *mut _; let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); panic_to_error!(element, imp.panicked(), fallback(), { f(imp) }) } @@ -364,7 +364,7 @@ impl ElementImplExt for T { assert!(wrap.type_().is_a(Self::type_())); let ptr: *mut ffi::GstElement = wrap.to_glib_none().0; let instance = &*(ptr as *mut Self::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); panic_to_error!(wrap, imp.panicked(), fallback(), { f(imp, wrap.unsafe_cast_ref()) @@ -424,7 +424,7 @@ unsafe extern "C" fn element_change_state( transition: ffi::GstStateChange, ) -> ffi::GstStateChangeReturn { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); // *Never* fail downwards state changes, this causes bugs in GStreamer @@ -450,7 +450,7 @@ unsafe extern "C" fn element_request_new_pad( caps: *const ffi::GstCaps, ) -> *mut ffi::GstPad { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let caps = Option::::from_glib_borrow(caps); @@ -484,7 +484,7 @@ unsafe extern "C" fn element_release_pad( pad: *mut ffi::GstPad, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); // If we get a floating reference passed simply return here. It can't be stored inside this @@ -505,7 +505,7 @@ unsafe extern "C" fn element_send_event( event: *mut ffi::GstEvent, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); panic_to_error!(&wrap, imp.panicked(), false, { @@ -519,7 +519,7 @@ unsafe extern "C" fn element_query( query: *mut ffi::GstQuery, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let query = QueryRef::from_mut_ptr(query); @@ -534,7 +534,7 @@ unsafe extern "C" fn element_set_context( context: *mut ffi::GstContext, ) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); panic_to_error!(&wrap, imp.panicked(), (), { @@ -547,7 +547,7 @@ unsafe extern "C" fn element_set_clock( clock: *mut ffi::GstClock, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); let clock = Option::::from_glib_borrow(clock); @@ -562,7 +562,7 @@ unsafe extern "C" fn element_provide_clock( ptr: *mut ffi::GstElement, ) -> *mut ffi::GstClock { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); panic_to_error!(&wrap, imp.panicked(), None, { @@ -576,7 +576,7 @@ unsafe extern "C" fn element_post_message( msg: *mut ffi::GstMessage, ) -> glib::ffi::gboolean { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); // Can't catch panics here as posting the error message would cause diff --git a/gstreamer/src/subclass/pad.rs b/gstreamer/src/subclass/pad.rs index 9d51d9726..48d03ecfd 100644 --- a/gstreamer/src/subclass/pad.rs +++ b/gstreamer/src/subclass/pad.rs @@ -70,7 +70,7 @@ unsafe impl IsSubclassable for Pad { unsafe extern "C" fn pad_linked(ptr: *mut ffi::GstPad, peer: *mut ffi::GstPad) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.linked(wrap.unsafe_cast_ref(), &from_glib_borrow(peer)) @@ -78,7 +78,7 @@ unsafe extern "C" fn pad_linked(ptr: *mut ffi::GstPad, peer: *mut ff unsafe extern "C" fn pad_unlinked(ptr: *mut ffi::GstPad, peer: *mut ffi::GstPad) { let instance = &*(ptr as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); let wrap: Borrowed = from_glib_borrow(ptr); imp.unlinked(wrap.unsafe_cast_ref(), &from_glib_borrow(peer)) diff --git a/gstreamer/src/subclass/uri_handler.rs b/gstreamer/src/subclass/uri_handler.rs index 83ab1c3ad..56ac0d3f1 100644 --- a/gstreamer/src/subclass/uri_handler.rs +++ b/gstreamer/src/subclass/uri_handler.rs @@ -124,7 +124,7 @@ unsafe extern "C" fn uri_handler_get_uri( uri_handler: *mut ffi::GstURIHandler, ) -> *mut libc::c_char { let instance = &*(uri_handler as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); imp.uri(from_glib_borrow::<_, URIHandler>(uri_handler).unsafe_cast_ref()) .to_glib_full() @@ -136,7 +136,7 @@ unsafe extern "C" fn uri_handler_set_uri( err: *mut *mut glib::ffi::GError, ) -> glib::ffi::gboolean { let instance = &*(uri_handler as *mut T::Instance); - let imp = instance.impl_(); + let imp = instance.imp(); match imp.set_uri( from_glib_borrow::<_, URIHandler>(uri_handler).unsafe_cast_ref(),