From 8754e4220ea589befeef86430c840de95e7b5e0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 22 Feb 2019 11:51:17 +0200 Subject: [PATCH] Regenerate everything with latest gir --- gstreamer-app/src/auto/app_sink.rs | 16 +++--- gstreamer-app/src/auto/app_src.rs | 32 +++++------ gstreamer-app/src/auto/versions.txt | 2 +- gstreamer-audio/src/auto/stream_volume.rs | 4 +- gstreamer-audio/src/auto/versions.txt | 2 +- gstreamer-base/src/auto/aggregator.rs | 4 +- gstreamer-base/src/auto/base_sink.rs | 22 ++++---- gstreamer-base/src/auto/base_src.rs | 8 +-- gstreamer-base/src/auto/base_transform.rs | 2 +- gstreamer-base/src/auto/versions.txt | 2 +- gstreamer-check/src/auto/test_clock.rs | 9 +-- gstreamer-check/src/auto/versions.txt | 2 +- gstreamer-editing-services/src/auto/asset.rs | 4 +- gstreamer-editing-services/src/auto/clip.rs | 4 +- .../src/auto/container.rs | 6 +- gstreamer-editing-services/src/auto/group.rs | 10 ++-- gstreamer-editing-services/src/auto/layer.rs | 8 +-- .../src/auto/pipeline.rs | 12 ++-- .../src/auto/project.rs | 12 ++-- .../src/auto/timeline.rs | 22 ++++---- .../src/auto/timeline_element.rs | 18 +++--- gstreamer-editing-services/src/auto/track.rs | 12 ++-- .../src/auto/track_element.rs | 6 +- .../src/auto/uri_clip.rs | 6 +- .../src/auto/uri_clip_asset.rs | 2 +- .../src/auto/versions.txt | 2 +- gstreamer-gl/src/auto/gl_base_filter.rs | 2 +- gstreamer-gl/src/auto/gl_display.rs | 2 +- gstreamer-gl/src/auto/gl_framebuffer.rs | 4 +- gstreamer-gl/src/auto/gl_shader.rs | 2 +- gstreamer-gl/src/auto/gl_view_convert.rs | 10 ++-- gstreamer-gl/src/auto/gl_window.rs | 4 +- gstreamer-gl/src/auto/versions.txt | 2 +- gstreamer-net/src/auto/net_client_clock.rs | 14 ++--- gstreamer-net/src/auto/net_time_provider.rs | 4 +- gstreamer-net/src/auto/ptp_clock.rs | 6 +- gstreamer-net/src/auto/versions.txt | 2 +- gstreamer-pbutils/src/auto/discoverer.rs | 8 +-- gstreamer-pbutils/src/auto/versions.txt | 2 +- gstreamer-player/src/auto/player.rs | 50 ++++++++--------- .../player_video_overlay_video_renderer.rs | 4 +- gstreamer-player/src/auto/versions.txt | 2 +- gstreamer-rtsp-server/src/auto/rtsp_auth.rs | 2 +- gstreamer-rtsp-server/src/auto/rtsp_client.rs | 56 +++++++++---------- gstreamer-rtsp-server/src/auto/rtsp_media.rs | 36 ++++++------ .../src/auto/rtsp_media_factory.rs | 26 ++++----- .../src/auto/rtsp_media_factory_uri.rs | 4 +- gstreamer-rtsp-server/src/auto/rtsp_server.rs | 18 +++--- .../src/auto/rtsp_session.rs | 8 +-- .../src/auto/rtsp_session_pool.rs | 8 +-- gstreamer-rtsp-server/src/auto/rtsp_stream.rs | 14 ++--- .../src/auto/rtsp_thread_pool.rs | 2 +- gstreamer-rtsp-server/src/auto/versions.txt | 2 +- gstreamer-rtsp/src/auto/versions.txt | 2 +- gstreamer-sdp/src/auto/versions.txt | 2 +- gstreamer-video/src/auto/versions.txt | 2 +- gstreamer-webrtc/src/auto/versions.txt | 2 +- .../src/auto/web_rtcdtls_transport.rs | 10 ++-- .../src/auto/web_rtcice_transport.rs | 8 +-- gstreamer/src/auto/bin.rs | 12 ++-- gstreamer/src/auto/bus.rs | 4 +- gstreamer/src/auto/child_proxy.rs | 4 +- gstreamer/src/auto/clock.rs | 8 +-- gstreamer/src/auto/device.rs | 2 +- gstreamer/src/auto/device_monitor.rs | 2 +- gstreamer/src/auto/device_provider.rs | 4 +- gstreamer/src/auto/element.rs | 6 +- gstreamer/src/auto/object.rs | 4 +- gstreamer/src/auto/pad.rs | 10 ++-- gstreamer/src/auto/pad_template.rs | 2 +- gstreamer/src/auto/pipeline.rs | 6 +- gstreamer/src/auto/registry.rs | 4 +- gstreamer/src/auto/stream.rs | 8 +-- gstreamer/src/auto/stream_collection.rs | 2 +- gstreamer/src/auto/system_clock.rs | 2 +- gstreamer/src/auto/versions.txt | 2 +- 76 files changed, 314 insertions(+), 317 deletions(-) diff --git a/gstreamer-app/src/auto/app_sink.rs b/gstreamer-app/src/auto/app_sink.rs index e69ae7c6d..1509631da 100644 --- a/gstreamer-app/src/auto/app_sink.rs +++ b/gstreamer-app/src/auto/app_sink.rs @@ -227,41 +227,41 @@ unsafe impl Send for AppSink {} unsafe impl Sync for AppSink {} unsafe extern "C" fn eos_trampoline(this: *mut ffi::GstAppSink, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_buffer_list_trampoline(this: *mut ffi::GstAppSink, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_caps_trampoline(this: *mut ffi::GstAppSink, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_drop_trampoline(this: *mut ffi::GstAppSink, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_emit_signals_trampoline(this: *mut ffi::GstAppSink, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_eos_trampoline(this: *mut ffi::GstAppSink, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_max_buffers_trampoline(this: *mut ffi::GstAppSink, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_wait_on_eos_trampoline(this: *mut ffi::GstAppSink, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } diff --git a/gstreamer-app/src/auto/app_src.rs b/gstreamer-app/src/auto/app_src.rs index 3f5fbcaa2..6bdc94bc6 100644 --- a/gstreamer-app/src/auto/app_src.rs +++ b/gstreamer-app/src/auto/app_src.rs @@ -343,81 +343,81 @@ unsafe impl Send for AppSrc {} unsafe impl Sync for AppSrc {} unsafe extern "C" fn enough_data_trampoline(this: *mut ffi::GstAppSrc, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn need_data_trampoline(this: *mut ffi::GstAppSrc, length: libc::c_uint, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this), length) } unsafe extern "C" fn seek_data_trampoline bool + Send + Sync + 'static>(this: *mut ffi::GstAppSrc, offset: u64, f: glib_ffi::gpointer) -> glib_ffi::gboolean { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this), offset).to_glib() } unsafe extern "C" fn notify_block_trampoline(this: *mut ffi::GstAppSrc, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_caps_trampoline(this: *mut ffi::GstAppSrc, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_current_level_bytes_trampoline(this: *mut ffi::GstAppSrc, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_duration_trampoline(this: *mut ffi::GstAppSrc, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_emit_signals_trampoline(this: *mut ffi::GstAppSrc, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_format_trampoline(this: *mut ffi::GstAppSrc, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_is_live_trampoline(this: *mut ffi::GstAppSrc, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_max_bytes_trampoline(this: *mut ffi::GstAppSrc, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_max_latency_trampoline(this: *mut ffi::GstAppSrc, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_min_latency_trampoline(this: *mut ffi::GstAppSrc, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_min_percent_trampoline(this: *mut ffi::GstAppSrc, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_size_trampoline(this: *mut ffi::GstAppSrc, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_stream_type_trampoline(this: *mut ffi::GstAppSrc, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } diff --git a/gstreamer-app/src/auto/versions.txt b/gstreamer-app/src/auto/versions.txt index 48014f977..b9131200d 100644 --- a/gstreamer-app/src/auto/versions.txt +++ b/gstreamer-app/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eb84608) +Generated by gir (https://github.com/gtk-rs/gir @ 48d40b3) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-audio/src/auto/stream_volume.rs b/gstreamer-audio/src/auto/stream_volume.rs index 370d7da72..1e55d47ad 100644 --- a/gstreamer-audio/src/auto/stream_volume.rs +++ b/gstreamer-audio/src/auto/stream_volume.rs @@ -93,12 +93,12 @@ impl> StreamVolumeExt for O { unsafe extern "C" fn notify_mute_trampoline(this: *mut ffi::GstStreamVolume, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&StreamVolume::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_volume_trampoline(this: *mut ffi::GstStreamVolume, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&StreamVolume::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-audio/src/auto/versions.txt b/gstreamer-audio/src/auto/versions.txt index 48014f977..b9131200d 100644 --- a/gstreamer-audio/src/auto/versions.txt +++ b/gstreamer-audio/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eb84608) +Generated by gir (https://github.com/gtk-rs/gir @ 48d40b3) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-base/src/auto/aggregator.rs b/gstreamer-base/src/auto/aggregator.rs index ee9bf0695..3641bc76a 100644 --- a/gstreamer-base/src/auto/aggregator.rs +++ b/gstreamer-base/src/auto/aggregator.rs @@ -124,12 +124,12 @@ impl> AggregatorExt for O { #[cfg(any(feature = "v1_14", feature = "dox"))] unsafe extern "C" fn notify_latency_trampoline(this: *mut ffi::GstAggregator, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Aggregator::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_start_time_trampoline(this: *mut ffi::GstAggregator, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Aggregator::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-base/src/auto/base_sink.rs b/gstreamer-base/src/auto/base_sink.rs index 8703bcdc1..5b9635f9e 100644 --- a/gstreamer-base/src/auto/base_sink.rs +++ b/gstreamer-base/src/auto/base_sink.rs @@ -425,66 +425,66 @@ impl> BaseSinkExt for O { unsafe extern "C" fn notify_async_trampoline(this: *mut ffi::GstBaseSink, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&BaseSink::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_blocksize_trampoline(this: *mut ffi::GstBaseSink, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&BaseSink::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_enable_last_sample_trampoline(this: *mut ffi::GstBaseSink, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&BaseSink::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_last_sample_trampoline(this: *mut ffi::GstBaseSink, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&BaseSink::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_max_bitrate_trampoline(this: *mut ffi::GstBaseSink, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&BaseSink::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_max_lateness_trampoline(this: *mut ffi::GstBaseSink, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&BaseSink::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_qos_trampoline(this: *mut ffi::GstBaseSink, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&BaseSink::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_render_delay_trampoline(this: *mut ffi::GstBaseSink, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&BaseSink::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_sync_trampoline(this: *mut ffi::GstBaseSink, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&BaseSink::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_throttle_time_trampoline(this: *mut ffi::GstBaseSink, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&BaseSink::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_ts_offset_trampoline(this: *mut ffi::GstBaseSink, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&BaseSink::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-base/src/auto/base_src.rs b/gstreamer-base/src/auto/base_src.rs index d2cbadcf0..a5fb6742c 100644 --- a/gstreamer-base/src/auto/base_src.rs +++ b/gstreamer-base/src/auto/base_src.rs @@ -243,24 +243,24 @@ impl> BaseSrcExt for O { unsafe extern "C" fn notify_blocksize_trampoline(this: *mut ffi::GstBaseSrc, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&BaseSrc::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_do_timestamp_trampoline(this: *mut ffi::GstBaseSrc, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&BaseSrc::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_num_buffers_trampoline(this: *mut ffi::GstBaseSrc, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&BaseSrc::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_typefind_trampoline(this: *mut ffi::GstBaseSrc, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&BaseSrc::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-base/src/auto/base_transform.rs b/gstreamer-base/src/auto/base_transform.rs index 4e9ea4743..e39cc5a62 100644 --- a/gstreamer-base/src/auto/base_transform.rs +++ b/gstreamer-base/src/auto/base_transform.rs @@ -174,6 +174,6 @@ impl> BaseTransformExt for O { unsafe extern "C" fn notify_qos_trampoline(this: *mut ffi::GstBaseTransform, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&BaseTransform::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-base/src/auto/versions.txt b/gstreamer-base/src/auto/versions.txt index 48014f977..b9131200d 100644 --- a/gstreamer-base/src/auto/versions.txt +++ b/gstreamer-base/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eb84608) +Generated by gir (https://github.com/gtk-rs/gir @ 48d40b3) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-check/src/auto/test_clock.rs b/gstreamer-check/src/auto/test_clock.rs index c69a90df9..9073ee73d 100644 --- a/gstreamer-check/src/auto/test_clock.rs +++ b/gstreamer-check/src/auto/test_clock.rs @@ -45,12 +45,9 @@ impl TestClock { } } - pub fn crank(&self) -> Result<(), glib::BoolError> { + pub fn crank(&self) -> bool { unsafe { - glib_result_from_gboolean!( - ffi::gst_test_clock_crank(self.to_glib_none().0), - "Failed to crank" - ) + from_glib(ffi::gst_test_clock_crank(self.to_glib_none().0)) } } @@ -147,6 +144,6 @@ unsafe impl Send for TestClock {} unsafe impl Sync for TestClock {} unsafe extern "C" fn notify_clock_type_trampoline(this: *mut ffi::GstTestClock, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } diff --git a/gstreamer-check/src/auto/versions.txt b/gstreamer-check/src/auto/versions.txt index 48014f977..b9131200d 100644 --- a/gstreamer-check/src/auto/versions.txt +++ b/gstreamer-check/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eb84608) +Generated by gir (https://github.com/gtk-rs/gir @ 48d40b3) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-editing-services/src/auto/asset.rs b/gstreamer-editing-services/src/auto/asset.rs index fc58c1c24..3d34119ea 100644 --- a/gstreamer-editing-services/src/auto/asset.rs +++ b/gstreamer-editing-services/src/auto/asset.rs @@ -200,12 +200,12 @@ impl> AssetExt for O { unsafe extern "C" fn notify_proxy_trampoline(this: *mut ffi::GESAsset, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Asset::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_proxy_target_trampoline(this: *mut ffi::GESAsset, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Asset::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-editing-services/src/auto/clip.rs b/gstreamer-editing-services/src/auto/clip.rs index 21f0f13cd..24a3a99a8 100644 --- a/gstreamer-editing-services/src/auto/clip.rs +++ b/gstreamer-editing-services/src/auto/clip.rs @@ -164,12 +164,12 @@ impl> ClipExt for O { unsafe extern "C" fn notify_layer_trampoline(this: *mut ffi::GESClip, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Clip::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_supported_formats_trampoline(this: *mut ffi::GESClip, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Clip::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-editing-services/src/auto/container.rs b/gstreamer-editing-services/src/auto/container.rs index 08a03c749..0b28eca00 100644 --- a/gstreamer-editing-services/src/auto/container.rs +++ b/gstreamer-editing-services/src/auto/container.rs @@ -126,18 +126,18 @@ impl> GESContainerExt for O { unsafe extern "C" fn child_added_trampoline(this: *mut ffi::GESContainer, element: *mut ffi::GESTimelineElement, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Container::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(element)) } unsafe extern "C" fn child_removed_trampoline(this: *mut ffi::GESContainer, element: *mut ffi::GESTimelineElement, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Container::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(element)) } unsafe extern "C" fn notify_height_trampoline(this: *mut ffi::GESContainer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Container::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-editing-services/src/auto/group.rs b/gstreamer-editing-services/src/auto/group.rs index 2d1dd060f..8d01cd553 100644 --- a/gstreamer-editing-services/src/auto/group.rs +++ b/gstreamer-editing-services/src/auto/group.rs @@ -189,30 +189,30 @@ impl> GroupExt for O { unsafe extern "C" fn notify_duration_trampoline(this: *mut ffi::GESGroup, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Group::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_in_point_trampoline(this: *mut ffi::GESGroup, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Group::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_max_duration_trampoline(this: *mut ffi::GESGroup, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Group::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_priority_trampoline(this: *mut ffi::GESGroup, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Group::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_start_trampoline(this: *mut ffi::GESGroup, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Group::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-editing-services/src/auto/layer.rs b/gstreamer-editing-services/src/auto/layer.rs index 9acc932d9..bf064ad59 100644 --- a/gstreamer-editing-services/src/auto/layer.rs +++ b/gstreamer-editing-services/src/auto/layer.rs @@ -196,24 +196,24 @@ impl> LayerExt for O { unsafe extern "C" fn clip_added_trampoline(this: *mut ffi::GESLayer, clip: *mut ffi::GESClip, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Layer::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(clip)) } unsafe extern "C" fn clip_removed_trampoline(this: *mut ffi::GESLayer, clip: *mut ffi::GESClip, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Layer::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(clip)) } unsafe extern "C" fn notify_auto_transition_trampoline(this: *mut ffi::GESLayer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Layer::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_priority_trampoline(this: *mut ffi::GESLayer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Layer::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-editing-services/src/auto/pipeline.rs b/gstreamer-editing-services/src/auto/pipeline.rs index 8cfb99082..0902ef8b0 100644 --- a/gstreamer-editing-services/src/auto/pipeline.rs +++ b/gstreamer-editing-services/src/auto/pipeline.rs @@ -285,36 +285,36 @@ impl> GESPipelineExt for O { unsafe extern "C" fn notify_audio_filter_trampoline(this: *mut ffi::GESPipeline, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Pipeline::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_audio_sink_trampoline(this: *mut ffi::GESPipeline, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Pipeline::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_mode_trampoline(this: *mut ffi::GESPipeline, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Pipeline::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_timeline_trampoline(this: *mut ffi::GESPipeline, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Pipeline::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_video_filter_trampoline(this: *mut ffi::GESPipeline, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Pipeline::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_video_sink_trampoline(this: *mut ffi::GESPipeline, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Pipeline::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-editing-services/src/auto/project.rs b/gstreamer-editing-services/src/auto/project.rs index 213156bfe..c35646f1f 100644 --- a/gstreamer-editing-services/src/auto/project.rs +++ b/gstreamer-editing-services/src/auto/project.rs @@ -211,36 +211,36 @@ impl> ProjectExt for O { unsafe extern "C" fn asset_added_trampoline(this: *mut ffi::GESProject, asset: *mut ffi::GESAsset, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Project::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(asset)) } unsafe extern "C" fn asset_loading_trampoline(this: *mut ffi::GESProject, asset: *mut ffi::GESAsset, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Project::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(asset)) } unsafe extern "C" fn asset_removed_trampoline(this: *mut ffi::GESProject, asset: *mut ffi::GESAsset, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Project::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(asset)) } unsafe extern "C" fn error_loading_asset_trampoline(this: *mut ffi::GESProject, error: *mut glib_ffi::GError, id: *mut libc::c_char, extractable_type: glib_ffi::GType, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Project::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(error), &GString::from_glib_borrow(id), from_glib(extractable_type)) } unsafe extern "C" fn loaded_trampoline(this: *mut ffi::GESProject, timeline: *mut ffi::GESTimeline, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Project::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(timeline)) } unsafe extern "C" fn missing_uri_trampoline Option + 'static>(this: *mut ffi::GESProject, error: *mut glib_ffi::GError, wrong_asset: *mut ffi::GESAsset, f: glib_ffi::gpointer) -> *mut libc::c_char where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Project::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(error), &from_glib_borrow(wrong_asset)).to_glib_full() } diff --git a/gstreamer-editing-services/src/auto/timeline.rs b/gstreamer-editing-services/src/auto/timeline.rs index c4e6e536a..5546500df 100644 --- a/gstreamer-editing-services/src/auto/timeline.rs +++ b/gstreamer-editing-services/src/auto/timeline.rs @@ -389,66 +389,66 @@ impl> TimelineExt for O { unsafe extern "C" fn commited_trampoline(this: *mut ffi::GESTimeline, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Timeline::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn group_added_trampoline(this: *mut ffi::GESTimeline, group: *mut ffi::GESGroup, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Timeline::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(group)) } unsafe extern "C" fn layer_added_trampoline(this: *mut ffi::GESTimeline, layer: *mut ffi::GESLayer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Timeline::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(layer)) } unsafe extern "C" fn layer_removed_trampoline(this: *mut ffi::GESTimeline, layer: *mut ffi::GESLayer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Timeline::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(layer)) } unsafe extern "C" fn snapping_ended_trampoline(this: *mut ffi::GESTimeline, object: *mut ffi::GESTrackElement, p0: *mut ffi::GESTrackElement, p1: u64, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Timeline::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(object), &from_glib_borrow(p0), p1) } unsafe extern "C" fn snapping_started_trampoline(this: *mut ffi::GESTimeline, object: *mut ffi::GESTrackElement, p0: *mut ffi::GESTrackElement, p1: u64, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Timeline::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(object), &from_glib_borrow(p0), p1) } unsafe extern "C" fn track_added_trampoline(this: *mut ffi::GESTimeline, track: *mut ffi::GESTrack, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Timeline::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(track)) } unsafe extern "C" fn track_removed_trampoline(this: *mut ffi::GESTimeline, track: *mut ffi::GESTrack, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Timeline::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(track)) } unsafe extern "C" fn notify_auto_transition_trampoline(this: *mut ffi::GESTimeline, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Timeline::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_duration_trampoline(this: *mut ffi::GESTimeline, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Timeline::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_snapping_distance_trampoline(this: *mut ffi::GESTimeline, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Timeline::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-editing-services/src/auto/timeline_element.rs b/gstreamer-editing-services/src/auto/timeline_element.rs index 5f0c28498..94ea2eda9 100644 --- a/gstreamer-editing-services/src/auto/timeline_element.rs +++ b/gstreamer-editing-services/src/auto/timeline_element.rs @@ -442,54 +442,54 @@ impl> TimelineElementExt for O { unsafe extern "C" fn notify_duration_trampoline(this: *mut ffi::GESTimelineElement, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&TimelineElement::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_in_point_trampoline(this: *mut ffi::GESTimelineElement, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&TimelineElement::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_max_duration_trampoline(this: *mut ffi::GESTimelineElement, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&TimelineElement::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_name_trampoline(this: *mut ffi::GESTimelineElement, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&TimelineElement::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_parent_trampoline(this: *mut ffi::GESTimelineElement, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&TimelineElement::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_priority_trampoline(this: *mut ffi::GESTimelineElement, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&TimelineElement::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_serialize_trampoline(this: *mut ffi::GESTimelineElement, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&TimelineElement::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_start_trampoline(this: *mut ffi::GESTimelineElement, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&TimelineElement::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_timeline_trampoline(this: *mut ffi::GESTimelineElement, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&TimelineElement::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-editing-services/src/auto/track.rs b/gstreamer-editing-services/src/auto/track.rs index 5de333269..ff5a2da63 100644 --- a/gstreamer-editing-services/src/auto/track.rs +++ b/gstreamer-editing-services/src/auto/track.rs @@ -229,36 +229,36 @@ impl> GESTrackExt for O { unsafe extern "C" fn commited_trampoline(this: *mut ffi::GESTrack, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Track::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn track_element_added_trampoline(this: *mut ffi::GESTrack, effect: *mut ffi::GESTrackElement, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Track::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(effect)) } unsafe extern "C" fn track_element_removed_trampoline(this: *mut ffi::GESTrack, effect: *mut ffi::GESTrackElement, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Track::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(effect)) } unsafe extern "C" fn notify_duration_trampoline(this: *mut ffi::GESTrack, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Track::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_mixing_trampoline(this: *mut ffi::GESTrack, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Track::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_restriction_caps_trampoline(this: *mut ffi::GESTrack, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Track::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-editing-services/src/auto/track_element.rs b/gstreamer-editing-services/src/auto/track_element.rs index 17eda213c..5e59ad5f7 100644 --- a/gstreamer-editing-services/src/auto/track_element.rs +++ b/gstreamer-editing-services/src/auto/track_element.rs @@ -205,18 +205,18 @@ impl> TrackElementExt for O { unsafe extern "C" fn notify_active_trampoline(this: *mut ffi::GESTrackElement, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&TrackElement::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_track_trampoline(this: *mut ffi::GESTrackElement, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&TrackElement::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_track_type_trampoline(this: *mut ffi::GESTrackElement, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&TrackElement::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-editing-services/src/auto/uri_clip.rs b/gstreamer-editing-services/src/auto/uri_clip.rs index 020508e51..b8b40a496 100644 --- a/gstreamer-editing-services/src/auto/uri_clip.rs +++ b/gstreamer-editing-services/src/auto/uri_clip.rs @@ -135,18 +135,18 @@ impl> UriClipExt for O { unsafe extern "C" fn notify_is_image_trampoline(this: *mut ffi::GESUriClip, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&UriClip::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_mute_trampoline(this: *mut ffi::GESUriClip, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&UriClip::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_supported_formats_trampoline(this: *mut ffi::GESUriClip, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&UriClip::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-editing-services/src/auto/uri_clip_asset.rs b/gstreamer-editing-services/src/auto/uri_clip_asset.rs index 4ff4d3389..6f28505c8 100644 --- a/gstreamer-editing-services/src/auto/uri_clip_asset.rs +++ b/gstreamer-editing-services/src/auto/uri_clip_asset.rs @@ -101,6 +101,6 @@ impl> UriClipAssetExt for O { unsafe extern "C" fn notify_duration_trampoline(this: *mut ffi::GESUriClipAsset, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&UriClipAsset::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-editing-services/src/auto/versions.txt b/gstreamer-editing-services/src/auto/versions.txt index 48014f977..b9131200d 100644 --- a/gstreamer-editing-services/src/auto/versions.txt +++ b/gstreamer-editing-services/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eb84608) +Generated by gir (https://github.com/gtk-rs/gir @ 48d40b3) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-gl/src/auto/gl_base_filter.rs b/gstreamer-gl/src/auto/gl_base_filter.rs index 0346e5a71..37dd28d15 100644 --- a/gstreamer-gl/src/auto/gl_base_filter.rs +++ b/gstreamer-gl/src/auto/gl_base_filter.rs @@ -56,6 +56,6 @@ impl> GLBaseFilterExt for O { unsafe extern "C" fn notify_context_trampoline(this: *mut ffi::GstGLBaseFilter, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&GLBaseFilter::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-gl/src/auto/gl_display.rs b/gstreamer-gl/src/auto/gl_display.rs index 9da8c496c..9463966c5 100644 --- a/gstreamer-gl/src/auto/gl_display.rs +++ b/gstreamer-gl/src/auto/gl_display.rs @@ -131,6 +131,6 @@ impl> GLDisplayExt for O { unsafe extern "C" fn create_context_trampoline GLContext + Send + Sync + 'static>(this: *mut ffi::GstGLDisplay, context: *mut ffi::GstGLContext, f: glib_ffi::gpointer) -> *mut ffi::GstGLContext where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&GLDisplay::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(context)).to_glib_full() } diff --git a/gstreamer-gl/src/auto/gl_framebuffer.rs b/gstreamer-gl/src/auto/gl_framebuffer.rs index 5c5c7e219..8b36a3e9c 100644 --- a/gstreamer-gl/src/auto/gl_framebuffer.rs +++ b/gstreamer-gl/src/auto/gl_framebuffer.rs @@ -43,7 +43,7 @@ pub trait GLFramebufferExt: 'static { fn bind(&self); - //fn draw_to_texture(&self, mem: /*Ignored*/&mut GLMemory, func: /*Unimplemented*/Fn(/*Unimplemented*/Fundamental: Pointer) -> bool, user_data: /*Unimplemented*/Option) -> bool; + //fn draw_to_texture(&self, mem: /*Ignored*/&mut GLMemory, func: /*Unimplemented*/FnMut(/*Unimplemented*/Fundamental: Pointer) -> bool, user_data: /*Unimplemented*/Option) -> bool; fn get_effective_dimensions(&self) -> (u32, u32); @@ -61,7 +61,7 @@ impl> GLFramebufferExt for O { } } - //fn draw_to_texture(&self, mem: /*Ignored*/&mut GLMemory, func: /*Unimplemented*/Fn(/*Unimplemented*/Fundamental: Pointer) -> bool, user_data: /*Unimplemented*/Option) -> bool { + //fn draw_to_texture(&self, mem: /*Ignored*/&mut GLMemory, func: /*Unimplemented*/FnMut(/*Unimplemented*/Fundamental: Pointer) -> bool, user_data: /*Unimplemented*/Option) -> bool { // unsafe { TODO: call ffi::gst_gl_framebuffer_draw_to_texture() } //} diff --git a/gstreamer-gl/src/auto/gl_shader.rs b/gstreamer-gl/src/auto/gl_shader.rs index 422ddf453..18c43f521 100644 --- a/gstreamer-gl/src/auto/gl_shader.rs +++ b/gstreamer-gl/src/auto/gl_shader.rs @@ -267,6 +267,6 @@ unsafe impl Send for GLShader {} unsafe impl Sync for GLShader {} unsafe extern "C" fn notify_linked_trampoline(this: *mut ffi::GstGLShader, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } diff --git a/gstreamer-gl/src/auto/gl_view_convert.rs b/gstreamer-gl/src/auto/gl_view_convert.rs index 5532683f8..a242024e4 100644 --- a/gstreamer-gl/src/auto/gl_view_convert.rs +++ b/gstreamer-gl/src/auto/gl_view_convert.rs @@ -187,26 +187,26 @@ unsafe impl Send for GLViewConvert {} unsafe impl Sync for GLViewConvert {} unsafe extern "C" fn notify_downmix_mode_trampoline(this: *mut ffi::GstGLViewConvert, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_input_flags_override_trampoline(this: *mut ffi::GstGLViewConvert, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_input_mode_override_trampoline(this: *mut ffi::GstGLViewConvert, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_output_flags_override_trampoline(this: *mut ffi::GstGLViewConvert, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_output_mode_override_trampoline(this: *mut ffi::GstGLViewConvert, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } diff --git a/gstreamer-gl/src/auto/gl_window.rs b/gstreamer-gl/src/auto/gl_window.rs index 25ab4a1f9..0197a9b9a 100644 --- a/gstreamer-gl/src/auto/gl_window.rs +++ b/gstreamer-gl/src/auto/gl_window.rs @@ -174,12 +174,12 @@ impl> GLWindowExt for O { unsafe extern "C" fn key_event_trampoline(this: *mut ffi::GstGLWindow, id: *mut libc::c_char, key: *mut libc::c_char, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&GLWindow::from_glib_borrow(this).unsafe_cast(), &GString::from_glib_borrow(id), &GString::from_glib_borrow(key)) } unsafe extern "C" fn mouse_event_trampoline(this: *mut ffi::GstGLWindow, id: *mut libc::c_char, button: libc::c_int, x: libc::c_double, y: libc::c_double, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&GLWindow::from_glib_borrow(this).unsafe_cast(), &GString::from_glib_borrow(id), button, x, y) } diff --git a/gstreamer-gl/src/auto/versions.txt b/gstreamer-gl/src/auto/versions.txt index 48014f977..b9131200d 100644 --- a/gstreamer-gl/src/auto/versions.txt +++ b/gstreamer-gl/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eb84608) +Generated by gir (https://github.com/gtk-rs/gir @ 48d40b3) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-net/src/auto/net_client_clock.rs b/gstreamer-net/src/auto/net_client_clock.rs index e3db228cb..c8ba4e9ba 100644 --- a/gstreamer-net/src/auto/net_client_clock.rs +++ b/gstreamer-net/src/auto/net_client_clock.rs @@ -189,36 +189,36 @@ unsafe impl Send for NetClientClock {} unsafe impl Sync for NetClientClock {} unsafe extern "C" fn notify_address_trampoline(this: *mut ffi::GstNetClientClock, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_bus_trampoline(this: *mut ffi::GstNetClientClock, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_internal_clock_trampoline(this: *mut ffi::GstNetClientClock, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_minimum_update_interval_trampoline(this: *mut ffi::GstNetClientClock, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_port_trampoline(this: *mut ffi::GstNetClientClock, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_qos_dscp_trampoline(this: *mut ffi::GstNetClientClock, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_round_trip_limit_trampoline(this: *mut ffi::GstNetClientClock, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } diff --git a/gstreamer-net/src/auto/net_time_provider.rs b/gstreamer-net/src/auto/net_time_provider.rs index 0f53d2f77..72b2a9f64 100644 --- a/gstreamer-net/src/auto/net_time_provider.rs +++ b/gstreamer-net/src/auto/net_time_provider.rs @@ -98,11 +98,11 @@ unsafe impl Send for NetTimeProvider {} unsafe impl Sync for NetTimeProvider {} unsafe extern "C" fn notify_active_trampoline(this: *mut ffi::GstNetTimeProvider, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_qos_dscp_trampoline(this: *mut ffi::GstNetTimeProvider, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } diff --git a/gstreamer-net/src/auto/ptp_clock.rs b/gstreamer-net/src/auto/ptp_clock.rs index ae220f732..6c18995ae 100644 --- a/gstreamer-net/src/auto/ptp_clock.rs +++ b/gstreamer-net/src/auto/ptp_clock.rs @@ -85,16 +85,16 @@ unsafe impl Send for PtpClock {} unsafe impl Sync for PtpClock {} unsafe extern "C" fn notify_grandmaster_clock_id_trampoline(this: *mut ffi::GstPtpClock, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_internal_clock_trampoline(this: *mut ffi::GstPtpClock, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_master_clock_id_trampoline(this: *mut ffi::GstPtpClock, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } diff --git a/gstreamer-net/src/auto/versions.txt b/gstreamer-net/src/auto/versions.txt index 48014f977..b9131200d 100644 --- a/gstreamer-net/src/auto/versions.txt +++ b/gstreamer-net/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eb84608) +Generated by gir (https://github.com/gtk-rs/gir @ 48d40b3) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-pbutils/src/auto/discoverer.rs b/gstreamer-pbutils/src/auto/discoverer.rs index b4939c3a0..0c07d29e3 100644 --- a/gstreamer-pbutils/src/auto/discoverer.rs +++ b/gstreamer-pbutils/src/auto/discoverer.rs @@ -98,21 +98,21 @@ unsafe impl Send for Discoverer {} unsafe impl Sync for Discoverer {} unsafe extern "C" fn discovered_trampoline) + Send + Sync + 'static>(this: *mut ffi::GstDiscoverer, info: *mut ffi::GstDiscovererInfo, error: *mut glib_ffi::GError, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this), &from_glib_borrow(info), &from_glib_borrow(error)) } unsafe extern "C" fn finished_trampoline(this: *mut ffi::GstDiscoverer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn source_setup_trampoline(this: *mut ffi::GstDiscoverer, source: *mut gst_ffi::GstElement, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this), &from_glib_borrow(source)) } unsafe extern "C" fn starting_trampoline(this: *mut ffi::GstDiscoverer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } diff --git a/gstreamer-pbutils/src/auto/versions.txt b/gstreamer-pbutils/src/auto/versions.txt index 48014f977..b9131200d 100644 --- a/gstreamer-pbutils/src/auto/versions.txt +++ b/gstreamer-pbutils/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eb84608) +Generated by gir (https://github.com/gtk-rs/gir @ 48d40b3) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-player/src/auto/player.rs b/gstreamer-player/src/auto/player.rs index c39225e71..e4f347a19 100644 --- a/gstreamer-player/src/auto/player.rs +++ b/gstreamer-player/src/auto/player.rs @@ -555,126 +555,126 @@ unsafe impl Send for Player {} unsafe impl Sync for Player {} unsafe extern "C" fn buffering_trampoline(this: *mut ffi::GstPlayer, object: libc::c_int, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this), object) } unsafe extern "C" fn end_of_stream_trampoline(this: *mut ffi::GstPlayer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn error_trampoline(this: *mut ffi::GstPlayer, object: *mut glib_ffi::GError, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this), &from_glib_borrow(object)) } unsafe extern "C" fn media_info_updated_trampoline(this: *mut ffi::GstPlayer, object: *mut ffi::GstPlayerMediaInfo, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this), &from_glib_borrow(object)) } unsafe extern "C" fn mute_changed_trampoline(this: *mut ffi::GstPlayer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn state_changed_trampoline(this: *mut ffi::GstPlayer, object: ffi::GstPlayerState, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this), from_glib(object)) } unsafe extern "C" fn uri_loaded_trampoline(this: *mut ffi::GstPlayer, object: *mut libc::c_char, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this), &GString::from_glib_borrow(object)) } unsafe extern "C" fn video_dimensions_changed_trampoline(this: *mut ffi::GstPlayer, object: libc::c_int, p0: libc::c_int, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this), object, p0) } unsafe extern "C" fn volume_changed_trampoline(this: *mut ffi::GstPlayer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn warning_trampoline(this: *mut ffi::GstPlayer, object: *mut glib_ffi::GError, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this), &from_glib_borrow(object)) } unsafe extern "C" fn notify_audio_video_offset_trampoline(this: *mut ffi::GstPlayer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_current_audio_track_trampoline(this: *mut ffi::GstPlayer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_current_subtitle_track_trampoline(this: *mut ffi::GstPlayer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_current_video_track_trampoline(this: *mut ffi::GstPlayer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_duration_trampoline(this: *mut ffi::GstPlayer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_media_info_trampoline(this: *mut ffi::GstPlayer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_mute_trampoline(this: *mut ffi::GstPlayer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_pipeline_trampoline(this: *mut ffi::GstPlayer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_position_trampoline(this: *mut ffi::GstPlayer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_rate_trampoline(this: *mut ffi::GstPlayer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_suburi_trampoline(this: *mut ffi::GstPlayer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_uri_trampoline(this: *mut ffi::GstPlayer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_video_multiview_flags_trampoline(this: *mut ffi::GstPlayer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_video_multiview_mode_trampoline(this: *mut ffi::GstPlayer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_volume_trampoline(this: *mut ffi::GstPlayer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } diff --git a/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs b/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs index faafa7738..f3332fa7d 100644 --- a/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs +++ b/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs @@ -102,11 +102,11 @@ unsafe impl Send for PlayerVideoOverlayVideoRenderer {} unsafe impl Sync for PlayerVideoOverlayVideoRenderer {} unsafe extern "C" fn notify_video_sink_trampoline(this: *mut ffi::GstPlayerVideoOverlayVideoRenderer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_window_handle_trampoline(this: *mut ffi::GstPlayerVideoOverlayVideoRenderer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } diff --git a/gstreamer-player/src/auto/versions.txt b/gstreamer-player/src/auto/versions.txt index 48014f977..b9131200d 100644 --- a/gstreamer-player/src/auto/versions.txt +++ b/gstreamer-player/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eb84608) +Generated by gir (https://github.com/gtk-rs/gir @ 48d40b3) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-rtsp-server/src/auto/rtsp_auth.rs b/gstreamer-rtsp-server/src/auto/rtsp_auth.rs index bc7aef5c9..e7a00ad86 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_auth.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_auth.rs @@ -191,6 +191,6 @@ impl> RTSPAuthExt for O { unsafe extern "C" fn accept_certificate_trampoline bool + Send + Sync + 'static>(this: *mut ffi::GstRTSPAuth, connection: *mut gio_ffi::GTlsConnection, peer_cert: *mut gio_ffi::GTlsCertificate, errors: gio_ffi::GTlsCertificateFlags, f: glib_ffi::gpointer) -> glib_ffi::gboolean where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPAuth::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(connection), &from_glib_borrow(peer_cert), from_glib(errors)).to_glib() } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_client.rs b/gstreamer-rtsp-server/src/auto/rtsp_client.rs index ec095d26e..2ff7e536a 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_client.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_client.rs @@ -70,7 +70,7 @@ pub trait RTSPClientExt: 'static { //fn send_message<'a, P: IsA + 'a, Q: Into>>(&self, session: Q, message: /*Ignored*/&mut gst_rtsp::RTSPMessage) -> gst_rtsp::RTSPResult; - //fn session_filter(&self, func: /*Unimplemented*/Fn(&RTSPClient, &RTSPSession) -> /*Ignored*/RTSPFilterResult, user_data: /*Unimplemented*/Option) -> Vec; + //fn session_filter(&self, func: /*Unimplemented*/FnMut(&RTSPClient, &RTSPSession) -> /*Ignored*/RTSPFilterResult, user_data: /*Unimplemented*/Option) -> Vec; fn set_auth<'a, P: IsA + 'a, Q: Into>>(&self, auth: Q); @@ -198,7 +198,7 @@ impl> RTSPClientExt for O { // unsafe { TODO: call ffi::gst_rtsp_client_send_message() } //} - //fn session_filter(&self, func: /*Unimplemented*/Fn(&RTSPClient, &RTSPSession) -> /*Ignored*/RTSPFilterResult, user_data: /*Unimplemented*/Option) -> Vec { + //fn session_filter(&self, func: /*Unimplemented*/FnMut(&RTSPClient, &RTSPSession) -> /*Ignored*/RTSPFilterResult, user_data: /*Unimplemented*/Option) -> Vec { // unsafe { TODO: call ffi::gst_rtsp_client_session_filter() } //} @@ -481,166 +481,166 @@ impl> RTSPClientExt for O { unsafe extern "C" fn announce_request_trampoline(this: *mut ffi::GstRTSPClient, ctx: *mut ffi::GstRTSPContext, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(ctx)) } unsafe extern "C" fn closed_trampoline(this: *mut ffi::GstRTSPClient, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn describe_request_trampoline(this: *mut ffi::GstRTSPClient, ctx: *mut ffi::GstRTSPContext, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(ctx)) } unsafe extern "C" fn get_parameter_request_trampoline(this: *mut ffi::GstRTSPClient, ctx: *mut ffi::GstRTSPContext, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(ctx)) } unsafe extern "C" fn handle_response_trampoline(this: *mut ffi::GstRTSPClient, ctx: *mut ffi::GstRTSPContext, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(ctx)) } unsafe extern "C" fn new_session_trampoline(this: *mut ffi::GstRTSPClient, object: *mut ffi::GstRTSPSession, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(object)) } unsafe extern "C" fn options_request_trampoline(this: *mut ffi::GstRTSPClient, ctx: *mut ffi::GstRTSPContext, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(ctx)) } unsafe extern "C" fn pause_request_trampoline(this: *mut ffi::GstRTSPClient, ctx: *mut ffi::GstRTSPContext, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(ctx)) } unsafe extern "C" fn play_request_trampoline(this: *mut ffi::GstRTSPClient, ctx: *mut ffi::GstRTSPContext, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(ctx)) } #[cfg(any(feature = "v1_12", feature = "dox"))] unsafe extern "C" fn pre_announce_request_trampoline gst_rtsp::RTSPStatusCode + Send + Sync + 'static>(this: *mut ffi::GstRTSPClient, ctx: *mut ffi::GstRTSPContext, f: glib_ffi::gpointer) -> gst_rtsp_ffi::GstRTSPStatusCode where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(ctx)).to_glib() } #[cfg(any(feature = "v1_12", feature = "dox"))] unsafe extern "C" fn pre_describe_request_trampoline gst_rtsp::RTSPStatusCode + Send + Sync + 'static>(this: *mut ffi::GstRTSPClient, ctx: *mut ffi::GstRTSPContext, f: glib_ffi::gpointer) -> gst_rtsp_ffi::GstRTSPStatusCode where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(ctx)).to_glib() } #[cfg(any(feature = "v1_12", feature = "dox"))] unsafe extern "C" fn pre_get_parameter_request_trampoline gst_rtsp::RTSPStatusCode + Send + Sync + 'static>(this: *mut ffi::GstRTSPClient, ctx: *mut ffi::GstRTSPContext, f: glib_ffi::gpointer) -> gst_rtsp_ffi::GstRTSPStatusCode where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(ctx)).to_glib() } #[cfg(any(feature = "v1_12", feature = "dox"))] unsafe extern "C" fn pre_options_request_trampoline gst_rtsp::RTSPStatusCode + Send + Sync + 'static>(this: *mut ffi::GstRTSPClient, ctx: *mut ffi::GstRTSPContext, f: glib_ffi::gpointer) -> gst_rtsp_ffi::GstRTSPStatusCode where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(ctx)).to_glib() } #[cfg(any(feature = "v1_12", feature = "dox"))] unsafe extern "C" fn pre_pause_request_trampoline gst_rtsp::RTSPStatusCode + Send + Sync + 'static>(this: *mut ffi::GstRTSPClient, ctx: *mut ffi::GstRTSPContext, f: glib_ffi::gpointer) -> gst_rtsp_ffi::GstRTSPStatusCode where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(ctx)).to_glib() } #[cfg(any(feature = "v1_12", feature = "dox"))] unsafe extern "C" fn pre_play_request_trampoline gst_rtsp::RTSPStatusCode + Send + Sync + 'static>(this: *mut ffi::GstRTSPClient, ctx: *mut ffi::GstRTSPContext, f: glib_ffi::gpointer) -> gst_rtsp_ffi::GstRTSPStatusCode where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(ctx)).to_glib() } #[cfg(any(feature = "v1_12", feature = "dox"))] unsafe extern "C" fn pre_record_request_trampoline gst_rtsp::RTSPStatusCode + Send + Sync + 'static>(this: *mut ffi::GstRTSPClient, ctx: *mut ffi::GstRTSPContext, f: glib_ffi::gpointer) -> gst_rtsp_ffi::GstRTSPStatusCode where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(ctx)).to_glib() } #[cfg(any(feature = "v1_12", feature = "dox"))] unsafe extern "C" fn pre_set_parameter_request_trampoline gst_rtsp::RTSPStatusCode + Send + Sync + 'static>(this: *mut ffi::GstRTSPClient, ctx: *mut ffi::GstRTSPContext, f: glib_ffi::gpointer) -> gst_rtsp_ffi::GstRTSPStatusCode where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(ctx)).to_glib() } #[cfg(any(feature = "v1_12", feature = "dox"))] unsafe extern "C" fn pre_setup_request_trampoline gst_rtsp::RTSPStatusCode + Send + Sync + 'static>(this: *mut ffi::GstRTSPClient, ctx: *mut ffi::GstRTSPContext, f: glib_ffi::gpointer) -> gst_rtsp_ffi::GstRTSPStatusCode where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(ctx)).to_glib() } #[cfg(any(feature = "v1_12", feature = "dox"))] unsafe extern "C" fn pre_teardown_request_trampoline gst_rtsp::RTSPStatusCode + Send + Sync + 'static>(this: *mut ffi::GstRTSPClient, ctx: *mut ffi::GstRTSPContext, f: glib_ffi::gpointer) -> gst_rtsp_ffi::GstRTSPStatusCode where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(ctx)).to_glib() } unsafe extern "C" fn record_request_trampoline(this: *mut ffi::GstRTSPClient, ctx: *mut ffi::GstRTSPContext, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(ctx)) } unsafe extern "C" fn set_parameter_request_trampoline(this: *mut ffi::GstRTSPClient, ctx: *mut ffi::GstRTSPContext, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(ctx)) } unsafe extern "C" fn setup_request_trampoline(this: *mut ffi::GstRTSPClient, ctx: *mut ffi::GstRTSPContext, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(ctx)) } unsafe extern "C" fn teardown_request_trampoline(this: *mut ffi::GstRTSPClient, ctx: *mut ffi::GstRTSPContext, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(ctx)) } unsafe extern "C" fn notify_drop_backlog_trampoline(this: *mut ffi::GstRTSPClient, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_mount_points_trampoline(this: *mut ffi::GstRTSPClient, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_session_pool_trampoline(this: *mut ffi::GstRTSPClient, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPClient::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media.rs b/gstreamer-rtsp-server/src/auto/rtsp_media.rs index 66c0c6ac5..c3e022814 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media.rs @@ -719,108 +719,108 @@ impl> RTSPMediaExt for O { unsafe extern "C" fn new_state_trampoline(this: *mut ffi::GstRTSPMedia, object: libc::c_int, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMedia::from_glib_borrow(this).unsafe_cast(), object) } unsafe extern "C" fn new_stream_trampoline(this: *mut ffi::GstRTSPMedia, object: *mut ffi::GstRTSPStream, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMedia::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(object)) } unsafe extern "C" fn prepared_trampoline(this: *mut ffi::GstRTSPMedia, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMedia::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn removed_stream_trampoline(this: *mut ffi::GstRTSPMedia, object: *mut ffi::GstRTSPStream, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMedia::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(object)) } unsafe extern "C" fn target_state_trampoline(this: *mut ffi::GstRTSPMedia, object: libc::c_int, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMedia::from_glib_borrow(this).unsafe_cast(), object) } unsafe extern "C" fn unprepared_trampoline(this: *mut ffi::GstRTSPMedia, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMedia::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_buffer_size_trampoline(this: *mut ffi::GstRTSPMedia, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMedia::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_clock_trampoline(this: *mut ffi::GstRTSPMedia, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMedia::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_eos_shutdown_trampoline(this: *mut ffi::GstRTSPMedia, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMedia::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_latency_trampoline(this: *mut ffi::GstRTSPMedia, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMedia::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_profiles_trampoline(this: *mut ffi::GstRTSPMedia, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMedia::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_protocols_trampoline(this: *mut ffi::GstRTSPMedia, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMedia::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_reusable_trampoline(this: *mut ffi::GstRTSPMedia, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMedia::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_shared_trampoline(this: *mut ffi::GstRTSPMedia, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMedia::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_stop_on_disconnect_trampoline(this: *mut ffi::GstRTSPMedia, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMedia::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_suspend_mode_trampoline(this: *mut ffi::GstRTSPMedia, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMedia::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_time_provider_trampoline(this: *mut ffi::GstRTSPMedia, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMedia::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_transport_mode_trampoline(this: *mut ffi::GstRTSPMedia, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMedia::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs b/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs index fd3af286a..ebef4bd94 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs @@ -511,78 +511,78 @@ impl> RTSPMediaFactoryExt for O { unsafe extern "C" fn media_configure_trampoline(this: *mut ffi::GstRTSPMediaFactory, object: *mut ffi::GstRTSPMedia, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMediaFactory::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(object)) } unsafe extern "C" fn media_constructed_trampoline(this: *mut ffi::GstRTSPMediaFactory, object: *mut ffi::GstRTSPMedia, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMediaFactory::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(object)) } unsafe extern "C" fn notify_buffer_size_trampoline(this: *mut ffi::GstRTSPMediaFactory, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMediaFactory::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_clock_trampoline(this: *mut ffi::GstRTSPMediaFactory, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMediaFactory::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_eos_shutdown_trampoline(this: *mut ffi::GstRTSPMediaFactory, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMediaFactory::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_latency_trampoline(this: *mut ffi::GstRTSPMediaFactory, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMediaFactory::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_launch_trampoline(this: *mut ffi::GstRTSPMediaFactory, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMediaFactory::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_profiles_trampoline(this: *mut ffi::GstRTSPMediaFactory, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMediaFactory::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_protocols_trampoline(this: *mut ffi::GstRTSPMediaFactory, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMediaFactory::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_shared_trampoline(this: *mut ffi::GstRTSPMediaFactory, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMediaFactory::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_stop_on_disconnect_trampoline(this: *mut ffi::GstRTSPMediaFactory, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMediaFactory::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_suspend_mode_trampoline(this: *mut ffi::GstRTSPMediaFactory, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMediaFactory::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_transport_mode_trampoline(this: *mut ffi::GstRTSPMediaFactory, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMediaFactory::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media_factory_uri.rs b/gstreamer-rtsp-server/src/auto/rtsp_media_factory_uri.rs index 4f0ebe5c8..799c28347 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media_factory_uri.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media_factory_uri.rs @@ -105,12 +105,12 @@ impl> RTSPMediaFactoryURIExt for O { unsafe extern "C" fn notify_uri_trampoline(this: *mut ffi::GstRTSPMediaFactoryURI, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMediaFactoryURI::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_use_gstpay_trampoline(this: *mut ffi::GstRTSPMediaFactoryURI, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPMediaFactoryURI::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_server.rs b/gstreamer-rtsp-server/src/auto/rtsp_server.rs index a0fed793b..ee96b8b76 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_server.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_server.rs @@ -58,7 +58,7 @@ unsafe impl Sync for RTSPServer {} pub const NONE_RTSP_SERVER: Option<&RTSPServer> = None; pub trait RTSPServerExt: 'static { - //fn client_filter(&self, func: /*Unimplemented*/Fn(&RTSPServer, &RTSPClient) -> /*Ignored*/RTSPFilterResult, user_data: /*Unimplemented*/Option) -> Vec; + //fn client_filter(&self, func: /*Unimplemented*/FnMut(&RTSPServer, &RTSPClient) -> /*Ignored*/RTSPFilterResult, user_data: /*Unimplemented*/Option) -> Vec; fn create_socket<'a, P: IsA + 'a, Q: Into>>(&self, cancellable: Q) -> Result; @@ -112,7 +112,7 @@ pub trait RTSPServerExt: 'static { } impl> RTSPServerExt for O { - //fn client_filter(&self, func: /*Unimplemented*/Fn(&RTSPServer, &RTSPClient) -> /*Ignored*/RTSPFilterResult, user_data: /*Unimplemented*/Option) -> Vec { + //fn client_filter(&self, func: /*Unimplemented*/FnMut(&RTSPServer, &RTSPClient) -> /*Ignored*/RTSPFilterResult, user_data: /*Unimplemented*/Option) -> Vec { // unsafe { TODO: call ffi::gst_rtsp_server_client_filter() } //} @@ -294,42 +294,42 @@ impl> RTSPServerExt for O { unsafe extern "C" fn client_connected_trampoline(this: *mut ffi::GstRTSPServer, object: *mut ffi::GstRTSPClient, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPServer::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(object)) } unsafe extern "C" fn notify_address_trampoline(this: *mut ffi::GstRTSPServer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPServer::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_backlog_trampoline(this: *mut ffi::GstRTSPServer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPServer::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_bound_port_trampoline(this: *mut ffi::GstRTSPServer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPServer::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_mount_points_trampoline(this: *mut ffi::GstRTSPServer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPServer::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_service_trampoline(this: *mut ffi::GstRTSPServer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPServer::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_session_pool_trampoline(this: *mut ffi::GstRTSPServer, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPServer::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_session.rs b/gstreamer-rtsp-server/src/auto/rtsp_session.rs index 68461ae2f..b1b36aaa5 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_session.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_session.rs @@ -44,7 +44,7 @@ pub const NONE_RTSP_SESSION: Option<&RTSPSession> = None; pub trait RTSPSessionExt: 'static { fn allow_expire(&self); - //fn filter(&self, func: /*Unimplemented*/Fn(&RTSPSession, &RTSPSessionMedia) -> /*Ignored*/RTSPFilterResult, user_data: /*Unimplemented*/Option) -> Vec; + //fn filter(&self, func: /*Unimplemented*/FnMut(&RTSPSession, &RTSPSessionMedia) -> /*Ignored*/RTSPFilterResult, user_data: /*Unimplemented*/Option) -> Vec; fn get_header(&self) -> Option; @@ -88,7 +88,7 @@ impl> RTSPSessionExt for O { } } - //fn filter(&self, func: /*Unimplemented*/Fn(&RTSPSession, &RTSPSessionMedia) -> /*Ignored*/RTSPFilterResult, user_data: /*Unimplemented*/Option) -> Vec { + //fn filter(&self, func: /*Unimplemented*/FnMut(&RTSPSession, &RTSPSessionMedia) -> /*Ignored*/RTSPFilterResult, user_data: /*Unimplemented*/Option) -> Vec { // unsafe { TODO: call ffi::gst_rtsp_session_filter() } //} @@ -201,12 +201,12 @@ impl> RTSPSessionExt for O { unsafe extern "C" fn notify_timeout_trampoline(this: *mut ffi::GstRTSPSession, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPSession::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_timeout_always_visible_trampoline(this: *mut ffi::GstRTSPSession, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPSession::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_session_pool.rs b/gstreamer-rtsp-server/src/auto/rtsp_session_pool.rs index 0dba71cac..19b425a89 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_session_pool.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_session_pool.rs @@ -47,7 +47,7 @@ pub trait RTSPSessionPoolExt: 'static { fn create(&self) -> Option; - //fn filter(&self, func: /*Unimplemented*/Fn(&RTSPSessionPool, &RTSPSession) -> /*Ignored*/RTSPFilterResult, user_data: /*Unimplemented*/Option) -> Vec; + //fn filter(&self, func: /*Unimplemented*/FnMut(&RTSPSessionPool, &RTSPSession) -> /*Ignored*/RTSPFilterResult, user_data: /*Unimplemented*/Option) -> Vec; fn find(&self, sessionid: &str) -> Option; @@ -77,7 +77,7 @@ impl> RTSPSessionPoolExt for O { } } - //fn filter(&self, func: /*Unimplemented*/Fn(&RTSPSessionPool, &RTSPSession) -> /*Ignored*/RTSPFilterResult, user_data: /*Unimplemented*/Option) -> Vec { + //fn filter(&self, func: /*Unimplemented*/FnMut(&RTSPSessionPool, &RTSPSession) -> /*Ignored*/RTSPFilterResult, user_data: /*Unimplemented*/Option) -> Vec { // unsafe { TODO: call ffi::gst_rtsp_session_pool_filter() } //} @@ -130,12 +130,12 @@ impl> RTSPSessionPoolExt for O { unsafe extern "C" fn session_removed_trampoline(this: *mut ffi::GstRTSPSessionPool, object: *mut ffi::GstRTSPSession, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPSessionPool::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(object)) } unsafe extern "C" fn notify_max_sessions_trampoline(this: *mut ffi::GstRTSPSessionPool, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPSessionPool::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_stream.rs b/gstreamer-rtsp-server/src/auto/rtsp_stream.rs index 0cf69bebe..727a5b3d5 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_stream.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_stream.rs @@ -164,7 +164,7 @@ pub trait RTSPStreamExt: 'static { fn set_seqnum_offset(&self, seqnum: u16); - //fn transport_filter(&self, func: /*Unimplemented*/Fn(&RTSPStream, &RTSPStreamTransport) -> /*Ignored*/RTSPFilterResult, user_data: /*Unimplemented*/Option) -> Vec; + //fn transport_filter(&self, func: /*Unimplemented*/FnMut(&RTSPStream, &RTSPStreamTransport) -> /*Ignored*/RTSPFilterResult, user_data: /*Unimplemented*/Option) -> Vec; fn unblock_linked(&self) -> Result<(), glib::error::BoolError>; @@ -539,7 +539,7 @@ impl> RTSPStreamExt for O { } } - //fn transport_filter(&self, func: /*Unimplemented*/Fn(&RTSPStream, &RTSPStreamTransport) -> /*Ignored*/RTSPFilterResult, user_data: /*Unimplemented*/Option) -> Vec { + //fn transport_filter(&self, func: /*Unimplemented*/FnMut(&RTSPStream, &RTSPStreamTransport) -> /*Ignored*/RTSPFilterResult, user_data: /*Unimplemented*/Option) -> Vec { // unsafe { TODO: call ffi::gst_rtsp_stream_transport_filter() } //} @@ -599,30 +599,30 @@ impl> RTSPStreamExt for O { unsafe extern "C" fn new_rtcp_encoder_trampoline(this: *mut ffi::GstRTSPStream, object: *mut gst_ffi::GstElement, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPStream::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(object)) } unsafe extern "C" fn new_rtp_encoder_trampoline(this: *mut ffi::GstRTSPStream, object: *mut gst_ffi::GstElement, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPStream::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(object)) } unsafe extern "C" fn notify_control_trampoline(this: *mut ffi::GstRTSPStream, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPStream::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_profiles_trampoline(this: *mut ffi::GstRTSPStream, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPStream::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_protocols_trampoline(this: *mut ffi::GstRTSPStream, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPStream::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_thread_pool.rs b/gstreamer-rtsp-server/src/auto/rtsp_thread_pool.rs index ae0e5911c..13965a2de 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_thread_pool.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_thread_pool.rs @@ -85,6 +85,6 @@ impl> RTSPThreadPoolExt for O { unsafe extern "C" fn notify_max_threads_trampoline(this: *mut ffi::GstRTSPThreadPool, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&RTSPThreadPool::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer-rtsp-server/src/auto/versions.txt b/gstreamer-rtsp-server/src/auto/versions.txt index 48014f977..b9131200d 100644 --- a/gstreamer-rtsp-server/src/auto/versions.txt +++ b/gstreamer-rtsp-server/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eb84608) +Generated by gir (https://github.com/gtk-rs/gir @ 48d40b3) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-rtsp/src/auto/versions.txt b/gstreamer-rtsp/src/auto/versions.txt index 48014f977..b9131200d 100644 --- a/gstreamer-rtsp/src/auto/versions.txt +++ b/gstreamer-rtsp/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eb84608) +Generated by gir (https://github.com/gtk-rs/gir @ 48d40b3) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-sdp/src/auto/versions.txt b/gstreamer-sdp/src/auto/versions.txt index 48014f977..b9131200d 100644 --- a/gstreamer-sdp/src/auto/versions.txt +++ b/gstreamer-sdp/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eb84608) +Generated by gir (https://github.com/gtk-rs/gir @ 48d40b3) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-video/src/auto/versions.txt b/gstreamer-video/src/auto/versions.txt index 48014f977..b9131200d 100644 --- a/gstreamer-video/src/auto/versions.txt +++ b/gstreamer-video/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eb84608) +Generated by gir (https://github.com/gtk-rs/gir @ 48d40b3) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-webrtc/src/auto/versions.txt b/gstreamer-webrtc/src/auto/versions.txt index 48014f977..b9131200d 100644 --- a/gstreamer-webrtc/src/auto/versions.txt +++ b/gstreamer-webrtc/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eb84608) +Generated by gir (https://github.com/gtk-rs/gir @ 48d40b3) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs b/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs index 678767e65..10b7743ca 100644 --- a/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs +++ b/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs @@ -153,26 +153,26 @@ unsafe impl Send for WebRTCDTLSTransport {} unsafe impl Sync for WebRTCDTLSTransport {} unsafe extern "C" fn notify_certificate_trampoline(this: *mut ffi::GstWebRTCDTLSTransport, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_client_trampoline(this: *mut ffi::GstWebRTCDTLSTransport, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_remote_certificate_trampoline(this: *mut ffi::GstWebRTCDTLSTransport, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_state_trampoline(this: *mut ffi::GstWebRTCDTLSTransport, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_transport_trampoline(this: *mut ffi::GstWebRTCDTLSTransport, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } diff --git a/gstreamer-webrtc/src/auto/web_rtcice_transport.rs b/gstreamer-webrtc/src/auto/web_rtcice_transport.rs index cb4f6162d..2c0bcfc34 100644 --- a/gstreamer-webrtc/src/auto/web_rtcice_transport.rs +++ b/gstreamer-webrtc/src/auto/web_rtcice_transport.rs @@ -113,21 +113,21 @@ unsafe impl Send for WebRTCICETransport {} unsafe impl Sync for WebRTCICETransport {} unsafe extern "C" fn on_new_candidate_trampoline(this: *mut ffi::GstWebRTCICETransport, object: *mut libc::c_char, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this), &GString::from_glib_borrow(object)) } unsafe extern "C" fn on_selected_candidate_pair_change_trampoline(this: *mut ffi::GstWebRTCICETransport, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_gathering_state_trampoline(this: *mut ffi::GstWebRTCICETransport, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_state_trampoline(this: *mut ffi::GstWebRTCICETransport, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } diff --git a/gstreamer/src/auto/bin.rs b/gstreamer/src/auto/bin.rs index 3f80bdd7a..75c87249e 100644 --- a/gstreamer/src/auto/bin.rs +++ b/gstreamer/src/auto/bin.rs @@ -285,37 +285,37 @@ impl> GstBinExt for O { #[cfg(any(feature = "v1_10", feature = "dox"))] unsafe extern "C" fn deep_element_added_trampoline(this: *mut ffi::GstBin, sub_bin: *mut ffi::GstBin, element: *mut ffi::GstElement, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Bin::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(sub_bin), &from_glib_borrow(element)) } #[cfg(any(feature = "v1_10", feature = "dox"))] unsafe extern "C" fn deep_element_removed_trampoline(this: *mut ffi::GstBin, sub_bin: *mut ffi::GstBin, element: *mut ffi::GstElement, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Bin::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(sub_bin), &from_glib_borrow(element)) } unsafe extern "C" fn element_added_trampoline(this: *mut ffi::GstBin, element: *mut ffi::GstElement, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Bin::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(element)) } unsafe extern "C" fn element_removed_trampoline(this: *mut ffi::GstBin, element: *mut ffi::GstElement, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Bin::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(element)) } unsafe extern "C" fn notify_async_handling_trampoline(this: *mut ffi::GstBin, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Bin::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_message_forward_trampoline(this: *mut ffi::GstBin, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Bin::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer/src/auto/bus.rs b/gstreamer/src/auto/bus.rs index ada609423..2e47c3f34 100644 --- a/gstreamer/src/auto/bus.rs +++ b/gstreamer/src/auto/bus.rs @@ -137,11 +137,11 @@ unsafe impl Send for Bus {} unsafe impl Sync for Bus {} unsafe extern "C" fn message_trampoline(this: *mut ffi::GstBus, message: *mut ffi::GstMessage, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this), &from_glib_borrow(message)) } unsafe extern "C" fn sync_message_trampoline(this: *mut ffi::GstBus, message: *mut ffi::GstMessage, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this), &from_glib_borrow(message)) } diff --git a/gstreamer/src/auto/child_proxy.rs b/gstreamer/src/auto/child_proxy.rs index f82cae1ee..1e94d29d3 100644 --- a/gstreamer/src/auto/child_proxy.rs +++ b/gstreamer/src/auto/child_proxy.rs @@ -137,12 +137,12 @@ impl> ChildProxyExt for O { unsafe extern "C" fn child_added_trampoline(this: *mut ffi::GstChildProxy, object: *mut gobject_ffi::GObject, name: *mut libc::c_char, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&ChildProxy::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(object), &GString::from_glib_borrow(name)) } unsafe extern "C" fn child_removed_trampoline(this: *mut ffi::GstChildProxy, object: *mut gobject_ffi::GObject, name: *mut libc::c_char, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&ChildProxy::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(object), &GString::from_glib_borrow(name)) } diff --git a/gstreamer/src/auto/clock.rs b/gstreamer/src/auto/clock.rs index 34e6a86a0..e26d4bc3c 100644 --- a/gstreamer/src/auto/clock.rs +++ b/gstreamer/src/auto/clock.rs @@ -318,24 +318,24 @@ impl> ClockExt for O { unsafe extern "C" fn synced_trampoline(this: *mut ffi::GstClock, synced: glib_ffi::gboolean, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Clock::from_glib_borrow(this).unsafe_cast(), from_glib(synced)) } unsafe extern "C" fn notify_timeout_trampoline(this: *mut ffi::GstClock, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Clock::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_window_size_trampoline(this: *mut ffi::GstClock, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Clock::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_window_threshold_trampoline(this: *mut ffi::GstClock, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Clock::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer/src/auto/device.rs b/gstreamer/src/auto/device.rs index bbd479b45..f8631aed3 100644 --- a/gstreamer/src/auto/device.rs +++ b/gstreamer/src/auto/device.rs @@ -112,6 +112,6 @@ impl> DeviceExt for O { unsafe extern "C" fn removed_trampoline(this: *mut ffi::GstDevice, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Device::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer/src/auto/device_monitor.rs b/gstreamer/src/auto/device_monitor.rs index 05685c8d8..743a5113a 100644 --- a/gstreamer/src/auto/device_monitor.rs +++ b/gstreamer/src/auto/device_monitor.rs @@ -123,6 +123,6 @@ impl> DeviceMonitorExt for O { unsafe extern "C" fn notify_show_all_trampoline(this: *mut ffi::GstDeviceMonitor, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&DeviceMonitor::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer/src/auto/device_provider.rs b/gstreamer/src/auto/device_provider.rs index 41bd2cd43..650cd5cda 100644 --- a/gstreamer/src/auto/device_provider.rs +++ b/gstreamer/src/auto/device_provider.rs @@ -157,12 +157,12 @@ impl> DeviceProviderExt for O { unsafe extern "C" fn provider_hidden_trampoline(this: *mut ffi::GstDeviceProvider, object: *mut libc::c_char, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&DeviceProvider::from_glib_borrow(this).unsafe_cast(), &GString::from_glib_borrow(object)) } unsafe extern "C" fn provider_unhidden_trampoline(this: *mut ffi::GstDeviceProvider, object: *mut libc::c_char, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&DeviceProvider::from_glib_borrow(this).unsafe_cast(), &GString::from_glib_borrow(object)) } diff --git a/gstreamer/src/auto/element.rs b/gstreamer/src/auto/element.rs index 9c848343c..42178a3fd 100644 --- a/gstreamer/src/auto/element.rs +++ b/gstreamer/src/auto/element.rs @@ -502,18 +502,18 @@ impl> ElementExt for O { unsafe extern "C" fn no_more_pads_trampoline(this: *mut ffi::GstElement, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Element::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn pad_added_trampoline(this: *mut ffi::GstElement, new_pad: *mut ffi::GstPad, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Element::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(new_pad)) } unsafe extern "C" fn pad_removed_trampoline(this: *mut ffi::GstElement, old_pad: *mut ffi::GstPad, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Element::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(old_pad)) } diff --git a/gstreamer/src/auto/object.rs b/gstreamer/src/auto/object.rs index bf4cb58b6..3eea57f5f 100644 --- a/gstreamer/src/auto/object.rs +++ b/gstreamer/src/auto/object.rs @@ -255,12 +255,12 @@ impl> GstObjectExt for O { unsafe extern "C" fn notify_name_trampoline(this: *mut ffi::GstObject, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Object::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_parent_trampoline(this: *mut ffi::GstObject, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Object::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer/src/auto/pad.rs b/gstreamer/src/auto/pad.rs index aa61bf032..69e7d9994 100644 --- a/gstreamer/src/auto/pad.rs +++ b/gstreamer/src/auto/pad.rs @@ -490,30 +490,30 @@ impl> PadExt for O { unsafe extern "C" fn linked_trampoline(this: *mut ffi::GstPad, peer: *mut ffi::GstPad, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Pad::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(peer)) } unsafe extern "C" fn unlinked_trampoline(this: *mut ffi::GstPad, peer: *mut ffi::GstPad, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Pad::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(peer)) } unsafe extern "C" fn notify_caps_trampoline(this: *mut ffi::GstPad, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Pad::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_offset_trampoline(this: *mut ffi::GstPad, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Pad::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_template_trampoline(this: *mut ffi::GstPad, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Pad::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer/src/auto/pad_template.rs b/gstreamer/src/auto/pad_template.rs index a66454880..f2a4d1b1b 100644 --- a/gstreamer/src/auto/pad_template.rs +++ b/gstreamer/src/auto/pad_template.rs @@ -105,6 +105,6 @@ unsafe impl Send for PadTemplate {} unsafe impl Sync for PadTemplate {} unsafe extern "C" fn pad_created_trampoline(this: *mut ffi::GstPadTemplate, pad: *mut ffi::GstPad, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this), &from_glib_borrow(pad)) } diff --git a/gstreamer/src/auto/pipeline.rs b/gstreamer/src/auto/pipeline.rs index fb2afa99e..c7e28d714 100644 --- a/gstreamer/src/auto/pipeline.rs +++ b/gstreamer/src/auto/pipeline.rs @@ -150,18 +150,18 @@ impl> PipelineExt for O { unsafe extern "C" fn notify_auto_flush_bus_trampoline(this: *mut ffi::GstPipeline, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Pipeline::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_delay_trampoline(this: *mut ffi::GstPipeline, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Pipeline::from_glib_borrow(this).unsafe_cast()) } unsafe extern "C" fn notify_latency_trampoline(this: *mut ffi::GstPipeline, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&Pipeline::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer/src/auto/registry.rs b/gstreamer/src/auto/registry.rs index d09b668bf..bed090680 100644 --- a/gstreamer/src/auto/registry.rs +++ b/gstreamer/src/auto/registry.rs @@ -168,11 +168,11 @@ unsafe impl Send for Registry {} unsafe impl Sync for Registry {} unsafe extern "C" fn feature_added_trampoline(this: *mut ffi::GstRegistry, feature: *mut ffi::GstPluginFeature, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this), &from_glib_borrow(feature)) } unsafe extern "C" fn plugin_added_trampoline(this: *mut ffi::GstRegistry, plugin: *mut ffi::GstPlugin, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this), &from_glib_borrow(plugin)) } diff --git a/gstreamer/src/auto/stream.rs b/gstreamer/src/auto/stream.rs index 07ccfd9bb..227947e7b 100644 --- a/gstreamer/src/auto/stream.rs +++ b/gstreamer/src/auto/stream.rs @@ -195,21 +195,21 @@ unsafe impl Send for Stream {} unsafe impl Sync for Stream {} unsafe extern "C" fn notify_caps_trampoline(this: *mut ffi::GstStream, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_stream_flags_trampoline(this: *mut ffi::GstStream, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_stream_type_trampoline(this: *mut ffi::GstStream, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } unsafe extern "C" fn notify_tags_trampoline(this: *mut ffi::GstStream, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } diff --git a/gstreamer/src/auto/stream_collection.rs b/gstreamer/src/auto/stream_collection.rs index 5eb2fbe45..d5be2c470 100644 --- a/gstreamer/src/auto/stream_collection.rs +++ b/gstreamer/src/auto/stream_collection.rs @@ -80,6 +80,6 @@ unsafe impl Send for StreamCollection {} unsafe impl Sync for StreamCollection {} unsafe extern "C" fn notify_upstream_id_trampoline(this: *mut ffi::GstStreamCollection, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&from_glib_borrow(this)) } diff --git a/gstreamer/src/auto/system_clock.rs b/gstreamer/src/auto/system_clock.rs index 0cd3dc3f5..b654668ec 100644 --- a/gstreamer/src/auto/system_clock.rs +++ b/gstreamer/src/auto/system_clock.rs @@ -82,6 +82,6 @@ impl> SystemClockExt for O { unsafe extern "C" fn notify_clock_type_trampoline(this: *mut ffi::GstSystemClock, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - let f: &F = transmute(f); + let f: &F = &*(f as *const F); f(&SystemClock::from_glib_borrow(this).unsafe_cast()) } diff --git a/gstreamer/src/auto/versions.txt b/gstreamer/src/auto/versions.txt index 48014f977..b9131200d 100644 --- a/gstreamer/src/auto/versions.txt +++ b/gstreamer/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ eb84608) +Generated by gir (https://github.com/gtk-rs/gir @ 48d40b3) from gir-files (https://github.com/gtk-rs/gir-files @ ???)