From 0d009bca310447dd75ed88de55019ef4c41b3003 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Sat, 6 Nov 2021 18:31:52 +0100 Subject: [PATCH] regen with latest gir --- examples/Cargo.toml | 8 +- gir | 2 +- gstreamer-app/src/auto/app_sink.rs | 20 +-- gstreamer-app/src/auto/app_src.rs | 140 ++------------- gstreamer-app/src/auto/versions.txt | 2 +- gstreamer-app/sys/build.rs | 2 +- gstreamer-app/sys/src/lib.rs | 2 +- gstreamer-app/sys/tests/abi.rs | 2 +- gstreamer-app/sys/tests/constant.c | 2 +- gstreamer-app/sys/tests/layout.c | 2 +- gstreamer-audio/src/auto/audio_base_sink.rs | 60 +------ gstreamer-audio/src/auto/audio_base_src.rs | 64 +------ gstreamer-audio/src/auto/versions.txt | 2 +- gstreamer-audio/sys/build.rs | 2 +- gstreamer-audio/sys/src/lib.rs | 2 +- gstreamer-audio/sys/tests/abi.rs | 2 +- gstreamer-audio/sys/tests/constant.c | 2 +- gstreamer-audio/sys/tests/layout.c | 2 +- gstreamer-base/src/auto/aggregator.rs | 61 +------ gstreamer-base/src/auto/aggregator_pad.rs | 20 +-- gstreamer-base/src/auto/base_parse.rs | 20 +-- gstreamer-base/src/auto/base_sink.rs | 58 +------ gstreamer-base/src/auto/base_src.rs | 40 +---- gstreamer-base/src/auto/base_transform.rs | 18 +- gstreamer-base/src/auto/versions.txt | 2 +- gstreamer-base/sys/build.rs | 2 +- gstreamer-base/sys/src/lib.rs | 2 +- gstreamer-base/sys/tests/abi.rs | 2 +- gstreamer-base/sys/tests/constant.c | 2 +- gstreamer-base/sys/tests/layout.c | 2 +- gstreamer-check/src/auto/test_clock.rs | 32 +--- gstreamer-check/src/auto/versions.txt | 2 +- gstreamer-check/sys/build.rs | 2 +- gstreamer-check/sys/src/lib.rs | 2 +- gstreamer-check/sys/tests/abi.rs | 2 +- gstreamer-check/sys/tests/constant.c | 2 +- gstreamer-check/sys/tests/layout.c | 2 +- .../src/auto/argb_control_binding.rs | 84 +-------- .../src/auto/direct_control_binding.rs | 33 +--- .../src/auto/interpolation_control_source.rs | 21 +-- .../src/auto/lfo_control_source.rs | 100 ++--------- .../src/auto/trigger_control_source.rs | 20 +-- gstreamer-controller/src/auto/versions.txt | 2 +- gstreamer-controller/sys/build.rs | 2 +- gstreamer-controller/sys/src/lib.rs | 2 +- gstreamer-controller/sys/tests/abi.rs | 2 +- gstreamer-controller/sys/tests/constant.c | 2 +- gstreamer-controller/sys/tests/layout.c | 2 +- .../src/auto/audio_uri_source.rs | 10 +- .../src/auto/container.rs | 12 +- gstreamer-editing-services/src/auto/effect.rs | 12 +- .../src/auto/effect_clip.rs | 24 +-- gstreamer-editing-services/src/auto/group.rs | 100 ++--------- .../src/auto/image_source.rs | 10 +- gstreamer-editing-services/src/auto/marker.rs | 12 +- .../src/auto/marker_list.rs | 20 +-- .../src/auto/multi_file_source.rs | 10 +- .../src/auto/pipeline.rs | 92 +--------- .../src/auto/test_clip.rs | 20 +-- .../src/auto/text_overlay_clip.rs | 16 +- .../src/auto/timeline_element.rs | 40 +---- .../src/auto/title_clip.rs | 24 +-- gstreamer-editing-services/src/auto/track.rs | 54 +----- .../src/auto/transition_clip.rs | 21 +-- .../src/auto/uri_clip_asset.rs | 20 +-- .../src/auto/versions.txt | 2 +- .../src/auto/video_transition.rs | 20 +-- .../src/auto/video_uri_source.rs | 10 +- gstreamer-editing-services/sys/build.rs | 2 +- gstreamer-editing-services/sys/src/lib.rs | 2 +- gstreamer-editing-services/sys/tests/abi.rs | 2 +- .../sys/tests/constant.c | 2 +- gstreamer-editing-services/sys/tests/layout.c | 2 +- gstreamer-gl/egl/src/auto/versions.txt | 2 +- gstreamer-gl/egl/sys/build.rs | 2 +- gstreamer-gl/egl/sys/src/lib.rs | 2 +- gstreamer-gl/egl/sys/tests/abi.rs | 2 +- gstreamer-gl/egl/sys/tests/constant.c | 2 +- gstreamer-gl/egl/sys/tests/layout.c | 2 +- gstreamer-gl/src/auto/gl_base_filter.rs | 12 +- gstreamer-gl/src/auto/gl_base_src.rs | 20 +-- .../src/auto/gl_overlay_compositor.rs | 20 +-- gstreamer-gl/src/auto/gl_view_convert.rs | 108 ++---------- gstreamer-gl/src/auto/versions.txt | 2 +- gstreamer-gl/sys/build.rs | 2 +- gstreamer-gl/sys/src/lib.rs | 2 +- gstreamer-gl/sys/tests/abi.rs | 2 +- gstreamer-gl/sys/tests/constant.c | 2 +- gstreamer-gl/sys/tests/layout.c | 2 +- gstreamer-gl/wayland/src/auto/versions.txt | 2 +- gstreamer-gl/wayland/sys/build.rs | 2 +- gstreamer-gl/wayland/sys/src/lib.rs | 2 +- gstreamer-gl/wayland/sys/tests/abi.rs | 2 +- gstreamer-gl/wayland/sys/tests/constant.c | 2 +- gstreamer-gl/wayland/sys/tests/layout.c | 2 +- gstreamer-gl/x11/src/auto/versions.txt | 2 +- gstreamer-gl/x11/sys/build.rs | 2 +- gstreamer-gl/x11/sys/src/lib.rs | 2 +- gstreamer-gl/x11/sys/tests/abi.rs | 2 +- gstreamer-gl/x11/sys/tests/constant.c | 2 +- gstreamer-gl/x11/sys/tests/layout.c | 2 +- gstreamer-mpegts/sys/build.rs | 2 +- gstreamer-mpegts/sys/src/lib.rs | 2 +- gstreamer-mpegts/sys/tests/abi.rs | 2 +- gstreamer-mpegts/sys/tests/constant.c | 2 +- gstreamer-mpegts/sys/tests/layout.c | 2 +- gstreamer-net/src/auto/net_client_clock.rs | 142 ++------------- gstreamer-net/src/auto/net_time_provider.rs | 76 +------- gstreamer-net/src/auto/ptp_clock.rs | 48 +----- gstreamer-net/src/auto/versions.txt | 2 +- gstreamer-net/sys/build.rs | 2 +- gstreamer-net/sys/src/lib.rs | 2 +- gstreamer-net/sys/tests/abi.rs | 2 +- gstreamer-net/sys/tests/constant.c | 2 +- gstreamer-net/sys/tests/layout.c | 2 +- gstreamer-pbutils/src/auto/discoverer.rs | 20 +-- gstreamer-pbutils/src/auto/versions.txt | 2 +- gstreamer-pbutils/sys/build.rs | 2 +- gstreamer-pbutils/sys/src/lib.rs | 2 +- gstreamer-pbutils/sys/tests/abi.rs | 2 +- gstreamer-pbutils/sys/tests/constant.c | 2 +- gstreamer-pbutils/sys/tests/layout.c | 2 +- gstreamer-player/src/auto/player.rs | 77 +-------- .../player_gmain_context_signal_dispatcher.rs | 13 +- .../player_video_overlay_video_renderer.rs | 20 +-- gstreamer-player/src/auto/versions.txt | 2 +- gstreamer-player/sys/build.rs | 2 +- gstreamer-player/sys/src/lib.rs | 2 +- gstreamer-player/sys/tests/abi.rs | 2 +- gstreamer-player/sys/tests/constant.c | 2 +- gstreamer-player/sys/tests/layout.c | 2 +- gstreamer-rtp/src/auto/versions.txt | 2 +- gstreamer-rtp/sys/build.rs | 2 +- gstreamer-rtp/sys/src/lib.rs | 2 +- gstreamer-rtp/sys/tests/abi.rs | 2 +- gstreamer-rtp/sys/tests/constant.c | 2 +- gstreamer-rtp/sys/tests/layout.c | 2 +- gstreamer-rtsp-server/src/auto/rtsp_client.rs | 40 +---- gstreamer-rtsp-server/src/auto/rtsp_media.rs | 68 +------- .../src/auto/rtsp_media_factory.rs | 72 +------- .../src/auto/rtsp_media_factory_uri.rs | 20 +-- gstreamer-rtsp-server/src/auto/rtsp_server.rs | 20 +-- .../src/auto/rtsp_session.rs | 44 +---- gstreamer-rtsp-server/src/auto/versions.txt | 2 +- gstreamer-rtsp-server/sys/build.rs | 2 +- gstreamer-rtsp-server/sys/src/lib.rs | 2 +- gstreamer-rtsp-server/sys/tests/abi.rs | 2 +- gstreamer-rtsp-server/sys/tests/constant.c | 2 +- gstreamer-rtsp-server/sys/tests/layout.c | 2 +- gstreamer-rtsp/src/auto/versions.txt | 2 +- gstreamer-rtsp/sys/build.rs | 2 +- gstreamer-rtsp/sys/src/lib.rs | 2 +- gstreamer-rtsp/sys/tests/abi.rs | 2 +- gstreamer-rtsp/sys/tests/constant.c | 2 +- gstreamer-rtsp/sys/tests/layout.c | 2 +- gstreamer-sdp/src/auto/versions.txt | 2 +- gstreamer-sdp/sys/build.rs | 2 +- gstreamer-sdp/sys/src/lib.rs | 2 +- gstreamer-sdp/sys/tests/abi.rs | 2 +- gstreamer-sdp/sys/tests/constant.c | 2 +- gstreamer-sdp/sys/tests/layout.c | 2 +- gstreamer-tag/sys/build.rs | 2 +- gstreamer-tag/sys/src/lib.rs | 2 +- gstreamer-tag/sys/tests/abi.rs | 2 +- gstreamer-tag/sys/tests/constant.c | 2 +- gstreamer-tag/sys/tests/layout.c | 2 +- gstreamer-video/src/auto/versions.txt | 2 +- gstreamer-video/src/auto/video_decoder.rs | 119 +++---------- gstreamer-video/src/auto/video_encoder.rs | 18 +- gstreamer-video/src/auto/video_sink.rs | 20 +-- gstreamer-video/sys/build.rs | 2 +- gstreamer-video/sys/src/lib.rs | 2 +- gstreamer-video/sys/tests/abi.rs | 2 +- gstreamer-video/sys/tests/constant.c | 2 +- gstreamer-video/sys/tests/layout.c | 2 +- gstreamer-webrtc/src/auto/versions.txt | 2 +- .../src/auto/web_rtc_data_channel.rs | 162 ++---------------- .../src/auto/web_rtcdtls_transport.rs | 90 +--------- .../src/auto/web_rtcice_transport.rs | 39 +---- .../src/auto/web_rtcrtp_receiver.rs | 13 +- .../src/auto/web_rtcrtp_sender.rs | 26 +-- .../src/auto/web_rtcrtp_transceiver.rs | 115 ++----------- .../src/auto/web_rtcsctp_transport.rs | 50 +----- gstreamer-webrtc/sys/build.rs | 2 +- gstreamer-webrtc/sys/src/lib.rs | 2 +- gstreamer-webrtc/sys/tests/abi.rs | 2 +- gstreamer-webrtc/sys/tests/constant.c | 2 +- gstreamer-webrtc/sys/tests/layout.c | 2 +- gstreamer/src/auto/bin.rs | 40 +---- gstreamer/src/auto/clock.rs | 40 +---- gstreamer/src/auto/control_binding.rs | 12 +- gstreamer/src/auto/device_monitor.rs | 20 +-- gstreamer/src/auto/pad.rs | 12 +- gstreamer/src/auto/pad_template.rs | 49 +----- gstreamer/src/auto/system_clock.rs | 20 +-- gstreamer/src/auto/tracer.rs | 20 +-- gstreamer/src/auto/versions.txt | 2 +- gstreamer/sys/build.rs | 2 +- gstreamer/sys/src/lib.rs | 2 +- gstreamer/sys/tests/abi.rs | 2 +- gstreamer/sys/tests/constant.c | 2 +- gstreamer/sys/tests/layout.c | 2 +- 202 files changed, 443 insertions(+), 2830 deletions(-) diff --git a/examples/Cargo.toml b/examples/Cargo.toml index cf4379e59..49f6d3302 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -25,14 +25,14 @@ gst-rtsp = { package = "gstreamer-rtsp", path = "../gstreamer-rtsp", optional = gst-rtsp-server = { package = "gstreamer-rtsp-server", path = "../gstreamer-rtsp-server", optional = true } gtk = { git = "https://github.com/gtk-rs/gtk3-rs", optional = true } gdk = { git = "https://github.com/gtk-rs/gtk3-rs", optional = true } -gio = { git = "https://github.com/gtk-rs/gtk-rs-core", optional = true } +gio = { git = "https://github.com/gtk-rs/gtk-rs-core" , optional = true } anyhow = "1.0" derive_more = "0.99.5" futures = "0.3" byte-slice-cast = "1" -cairo-rs = { git = "https://github.com/gtk-rs/gtk-rs-core", features=["use_glib"], optional = true } -pango = { git = "https://github.com/gtk-rs/gtk-rs-core", optional = true } -pangocairo = { git = "https://github.com/gtk-rs/gtk-rs-core", optional = true } +cairo-rs = { git = "https://github.com/gtk-rs/gtk-rs-core" , features=["use_glib"], optional = true } +pango = { git = "https://github.com/gtk-rs/gtk-rs-core" , optional = true } +pangocairo = { git = "https://github.com/gtk-rs/gtk-rs-core" , optional = true } glutin = { version = "0.27", optional = true } once_cell = "1.0" image = { version="0.23", optional = true } diff --git a/gir b/gir index e0b170980..dd6854cae 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit e0b1709803a72df2223aace1eb15881c45bbbb96 +Subproject commit dd6854cae9fd070eb8331b44225e934fbc7bbb30 diff --git a/gstreamer-app/src/auto/app_sink.rs b/gstreamer-app/src/auto/app_sink.rs index 59f6e65c0..561daa5dd 100644 --- a/gstreamer-app/src/auto/app_sink.rs +++ b/gstreamer-app/src/auto/app_sink.rs @@ -181,28 +181,12 @@ impl AppSink { #[doc(alias = "buffer-list")] pub fn is_buffer_list(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"buffer-list\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `buffer-list` getter") - } + glib::ObjectExt::property(self, "buffer-list") } #[doc(alias = "buffer-list")] pub fn set_buffer_list(&self, buffer_list: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"buffer-list\0".as_ptr() as *const _, - buffer_list.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "buffer-list", &buffer_list) } #[doc(alias = "buffer-list")] diff --git a/gstreamer-app/src/auto/app_src.rs b/gstreamer-app/src/auto/app_src.rs index 937ae8f8b..d787ff059 100644 --- a/gstreamer-app/src/auto/app_src.rs +++ b/gstreamer-app/src/auto/app_src.rs @@ -193,185 +193,73 @@ impl AppSrc { } pub fn is_block(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"block\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `block` getter") - } + glib::ObjectExt::property(self, "block") } pub fn set_block(&self, block: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"block\0".as_ptr() as *const _, - block.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "block", &block) } pub fn format(&self) -> gst::Format { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"format\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `format` getter") - } + glib::ObjectExt::property(self, "format") } pub fn set_format(&self, format: gst::Format) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"format\0".as_ptr() as *const _, - format.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "format", &format) } #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "handle-segment-change")] pub fn is_handle_segment_change(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"handle-segment-change\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `handle-segment-change` getter") - } + glib::ObjectExt::property(self, "handle-segment-change") } #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] #[doc(alias = "handle-segment-change")] pub fn set_handle_segment_change(&self, handle_segment_change: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"handle-segment-change\0".as_ptr() as *const _, - handle_segment_change.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "handle-segment-change", &handle_segment_change) } #[doc(alias = "is-live")] pub fn is_live(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"is-live\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `is-live` getter") - } + glib::ObjectExt::property(self, "is-live") } #[doc(alias = "is-live")] pub fn set_is_live(&self, is_live: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"is-live\0".as_ptr() as *const _, - is_live.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "is-live", &is_live) } #[doc(alias = "max-latency")] pub fn max_latency(&self) -> i64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"max-latency\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `max-latency` getter") - } + glib::ObjectExt::property(self, "max-latency") } #[doc(alias = "max-latency")] pub fn set_max_latency(&self, max_latency: i64) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"max-latency\0".as_ptr() as *const _, - max_latency.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "max-latency", &max_latency) } #[doc(alias = "min-latency")] pub fn min_latency(&self) -> i64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"min-latency\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `min-latency` getter") - } + glib::ObjectExt::property(self, "min-latency") } #[doc(alias = "min-latency")] pub fn set_min_latency(&self, min_latency: i64) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"min-latency\0".as_ptr() as *const _, - min_latency.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "min-latency", &min_latency) } #[doc(alias = "min-percent")] pub fn min_percent(&self) -> u32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"min-percent\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `min-percent` getter") - } + glib::ObjectExt::property(self, "min-percent") } #[doc(alias = "min-percent")] pub fn set_min_percent(&self, min_percent: u32) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"min-percent\0".as_ptr() as *const _, - min_percent.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "min-percent", &min_percent) } #[doc(alias = "block")] diff --git a/gstreamer-app/src/auto/versions.txt b/gstreamer-app/src/auto/versions.txt index 3e512c8a3..aab55f441 100644 --- a/gstreamer-app/src/auto/versions.txt +++ b/gstreamer-app/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) diff --git a/gstreamer-app/sys/build.rs b/gstreamer-app/sys/build.rs index 3bcb7f365..0b5138ef3 100644 --- a/gstreamer-app/sys/build.rs +++ b/gstreamer-app/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-app/sys/src/lib.rs b/gstreamer-app/sys/src/lib.rs index d02829d74..172d3fb39 100644 --- a/gstreamer-app/sys/src/lib.rs +++ b/gstreamer-app/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-app/sys/tests/abi.rs b/gstreamer-app/sys/tests/abi.rs index 8df5fafd9..5f2a2380c 100644 --- a/gstreamer-app/sys/tests/abi.rs +++ b/gstreamer-app/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-app/sys/tests/constant.c b/gstreamer-app/sys/tests/constant.c index 997f990ad..30728c39c 100644 --- a/gstreamer-app/sys/tests/constant.c +++ b/gstreamer-app/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-app/sys/tests/layout.c b/gstreamer-app/sys/tests/layout.c index d1f7f479e..dccc289f1 100644 --- a/gstreamer-app/sys/tests/layout.c +++ b/gstreamer-app/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-audio/src/auto/audio_base_sink.rs b/gstreamer-audio/src/auto/audio_base_sink.rs index d802756e9..e500ba024 100644 --- a/gstreamer-audio/src/auto/audio_base_sink.rs +++ b/gstreamer-audio/src/auto/audio_base_sink.rs @@ -231,75 +231,27 @@ impl> AudioBaseSinkExt for O { //} fn buffer_time(&self) -> i64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"buffer-time\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `buffer-time` getter") - } + glib::ObjectExt::property(self.as_ref(), "buffer-time") } fn set_buffer_time(&self, buffer_time: i64) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"buffer-time\0".as_ptr() as *const _, - buffer_time.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "buffer-time", &buffer_time) } fn can_activate_pull(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"can-activate-pull\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `can-activate-pull` getter") - } + glib::ObjectExt::property(self.as_ref(), "can-activate-pull") } fn set_can_activate_pull(&self, can_activate_pull: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"can-activate-pull\0".as_ptr() as *const _, - can_activate_pull.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "can-activate-pull", &can_activate_pull) } fn latency_time(&self) -> i64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"latency-time\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `latency-time` getter") - } + glib::ObjectExt::property(self.as_ref(), "latency-time") } fn set_latency_time(&self, latency_time: i64) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"latency-time\0".as_ptr() as *const _, - latency_time.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "latency-time", &latency_time) } fn connect_alignment_threshold_notify( diff --git a/gstreamer-audio/src/auto/audio_base_src.rs b/gstreamer-audio/src/auto/audio_base_src.rs index 9f5ec0c75..fe6f42eb5 100644 --- a/gstreamer-audio/src/auto/audio_base_src.rs +++ b/gstreamer-audio/src/auto/audio_base_src.rs @@ -133,79 +133,27 @@ impl> AudioBaseSrcExt for O { //} fn actual_buffer_time(&self) -> i64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"actual-buffer-time\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `actual-buffer-time` getter") - } + glib::ObjectExt::property(self.as_ref(), "actual-buffer-time") } fn actual_latency_time(&self) -> i64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"actual-latency-time\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `actual-latency-time` getter") - } + glib::ObjectExt::property(self.as_ref(), "actual-latency-time") } fn buffer_time(&self) -> i64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"buffer-time\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `buffer-time` getter") - } + glib::ObjectExt::property(self.as_ref(), "buffer-time") } fn set_buffer_time(&self, buffer_time: i64) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"buffer-time\0".as_ptr() as *const _, - buffer_time.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "buffer-time", &buffer_time) } fn latency_time(&self) -> i64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"latency-time\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `latency-time` getter") - } + glib::ObjectExt::property(self.as_ref(), "latency-time") } fn set_latency_time(&self, latency_time: i64) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"latency-time\0".as_ptr() as *const _, - latency_time.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "latency-time", &latency_time) } fn connect_actual_buffer_time_notify( diff --git a/gstreamer-audio/src/auto/versions.txt b/gstreamer-audio/src/auto/versions.txt index 3e512c8a3..aab55f441 100644 --- a/gstreamer-audio/src/auto/versions.txt +++ b/gstreamer-audio/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) diff --git a/gstreamer-audio/sys/build.rs b/gstreamer-audio/sys/build.rs index 3bcb7f365..0b5138ef3 100644 --- a/gstreamer-audio/sys/build.rs +++ b/gstreamer-audio/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-audio/sys/src/lib.rs b/gstreamer-audio/sys/src/lib.rs index 6f274fa5c..f86750ec0 100644 --- a/gstreamer-audio/sys/src/lib.rs +++ b/gstreamer-audio/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-audio/sys/tests/abi.rs b/gstreamer-audio/sys/tests/abi.rs index 9e0b7c825..0a1c37d25 100644 --- a/gstreamer-audio/sys/tests/abi.rs +++ b/gstreamer-audio/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-audio/sys/tests/constant.c b/gstreamer-audio/sys/tests/constant.c index 614dd2afd..ac294573b 100644 --- a/gstreamer-audio/sys/tests/constant.c +++ b/gstreamer-audio/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-audio/sys/tests/layout.c b/gstreamer-audio/sys/tests/layout.c index 79a356c2a..23d00a19d 100644 --- a/gstreamer-audio/sys/tests/layout.c +++ b/gstreamer-audio/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-base/src/auto/aggregator.rs b/gstreamer-base/src/auto/aggregator.rs index cdf6e4246..8d6fcb4d5 100644 --- a/gstreamer-base/src/auto/aggregator.rs +++ b/gstreamer-base/src/auto/aggregator.rs @@ -227,82 +227,33 @@ impl> AggregatorExt for O { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn emits_signals(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"emit-signals\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `emit-signals` getter") - } + glib::ObjectExt::property(self.as_ref(), "emit-signals") } #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_emit_signals(&self, emit_signals: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"emit-signals\0".as_ptr() as *const _, - emit_signals.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "emit-signals", &emit_signals) } fn start_time(&self) -> u64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"start-time\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `start-time` getter") - } + glib::ObjectExt::property(self.as_ref(), "start-time") } fn set_start_time(&self, start_time: u64) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"start-time\0".as_ptr() as *const _, - start_time.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "start-time", &start_time) } #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn start_time_selection(&self) -> AggregatorStartTimeSelection { - unsafe { - let mut value = - glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"start-time-selection\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `start-time-selection` getter") - } + glib::ObjectExt::property(self.as_ref(), "start-time-selection") } #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_start_time_selection(&self, start_time_selection: AggregatorStartTimeSelection) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"start-time-selection\0".as_ptr() as *const _, - start_time_selection.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "start-time-selection", &start_time_selection) } #[cfg(any(feature = "v1_18", feature = "dox"))] diff --git a/gstreamer-base/src/auto/aggregator_pad.rs b/gstreamer-base/src/auto/aggregator_pad.rs index 2acb8250e..73f83aca6 100644 --- a/gstreamer-base/src/auto/aggregator_pad.rs +++ b/gstreamer-base/src/auto/aggregator_pad.rs @@ -137,29 +137,13 @@ impl> AggregatorPadExt for O { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn emits_signals(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"emit-signals\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `emit-signals` getter") - } + glib::ObjectExt::property(self.as_ref(), "emit-signals") } #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_emit_signals(&self, emit_signals: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"emit-signals\0".as_ptr() as *const _, - emit_signals.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "emit-signals", &emit_signals) } fn connect_buffer_consumed( diff --git a/gstreamer-base/src/auto/base_parse.rs b/gstreamer-base/src/auto/base_parse.rs index d00479f3e..29cf55fb7 100644 --- a/gstreamer-base/src/auto/base_parse.rs +++ b/gstreamer-base/src/auto/base_parse.rs @@ -188,27 +188,11 @@ impl> BaseParseExt for O { } fn is_disable_passthrough(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"disable-passthrough\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `disable-passthrough` getter") - } + glib::ObjectExt::property(self.as_ref(), "disable-passthrough") } fn set_disable_passthrough(&self, disable_passthrough: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"disable-passthrough\0".as_ptr() as *const _, - disable_passthrough.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "disable-passthrough", &disable_passthrough) } fn connect_disable_passthrough_notify( diff --git a/gstreamer-base/src/auto/base_sink.rs b/gstreamer-base/src/auto/base_sink.rs index 1b465aa67..3b7e3995f 100644 --- a/gstreamer-base/src/auto/base_sink.rs +++ b/gstreamer-base/src/auto/base_sink.rs @@ -414,73 +414,27 @@ impl> BaseSinkExt for O { } fn is_async(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"async\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `async` getter") - } + glib::ObjectExt::property(self.as_ref(), "async") } fn set_async(&self, async_: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"async\0".as_ptr() as *const _, - async_.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "async", &async_) } fn enables_last_sample(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"enable-last-sample\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `enable-last-sample` getter") - } + glib::ObjectExt::property(self.as_ref(), "enable-last-sample") } fn set_enable_last_sample(&self, enable_last_sample: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"enable-last-sample\0".as_ptr() as *const _, - enable_last_sample.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "enable-last-sample", &enable_last_sample) } fn is_qos(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"qos\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value.get().expect("Return Value for property `qos` getter") - } + glib::ObjectExt::property(self.as_ref(), "qos") } fn set_qos(&self, qos: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"qos\0".as_ptr() as *const _, - qos.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "qos", &qos) } fn connect_async_notify(&self, f: F) -> SignalHandlerId { diff --git a/gstreamer-base/src/auto/base_src.rs b/gstreamer-base/src/auto/base_src.rs index 716c66e96..c5005cd72 100644 --- a/gstreamer-base/src/auto/base_src.rs +++ b/gstreamer-base/src/auto/base_src.rs @@ -250,51 +250,19 @@ impl> BaseSrcExt for O { } fn num_buffers(&self) -> i32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"num-buffers\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `num-buffers` getter") - } + glib::ObjectExt::property(self.as_ref(), "num-buffers") } fn set_num_buffers(&self, num_buffers: i32) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"num-buffers\0".as_ptr() as *const _, - num_buffers.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "num-buffers", &num_buffers) } fn is_typefind(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"typefind\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `typefind` getter") - } + glib::ObjectExt::property(self.as_ref(), "typefind") } fn set_typefind(&self, typefind: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"typefind\0".as_ptr() as *const _, - typefind.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "typefind", &typefind) } fn connect_blocksize_notify( diff --git a/gstreamer-base/src/auto/base_transform.rs b/gstreamer-base/src/auto/base_transform.rs index 771a6f0d6..148e24031 100644 --- a/gstreamer-base/src/auto/base_transform.rs +++ b/gstreamer-base/src/auto/base_transform.rs @@ -184,25 +184,11 @@ impl> BaseTransformExt for O { } fn is_qos(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"qos\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value.get().expect("Return Value for property `qos` getter") - } + glib::ObjectExt::property(self.as_ref(), "qos") } fn set_qos(&self, qos: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"qos\0".as_ptr() as *const _, - qos.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "qos", &qos) } fn connect_qos_notify(&self, f: F) -> SignalHandlerId { diff --git a/gstreamer-base/src/auto/versions.txt b/gstreamer-base/src/auto/versions.txt index 3e512c8a3..aab55f441 100644 --- a/gstreamer-base/src/auto/versions.txt +++ b/gstreamer-base/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) diff --git a/gstreamer-base/sys/build.rs b/gstreamer-base/sys/build.rs index 3bcb7f365..0b5138ef3 100644 --- a/gstreamer-base/sys/build.rs +++ b/gstreamer-base/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-base/sys/src/lib.rs b/gstreamer-base/sys/src/lib.rs index abde1b962..68d040d33 100644 --- a/gstreamer-base/sys/src/lib.rs +++ b/gstreamer-base/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-base/sys/tests/abi.rs b/gstreamer-base/sys/tests/abi.rs index 9f8e14a33..45f457ccc 100644 --- a/gstreamer-base/sys/tests/abi.rs +++ b/gstreamer-base/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-base/sys/tests/constant.c b/gstreamer-base/sys/tests/constant.c index e3a31b974..b280de366 100644 --- a/gstreamer-base/sys/tests/constant.c +++ b/gstreamer-base/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-base/sys/tests/layout.c b/gstreamer-base/sys/tests/layout.c index 42b6fbb57..ff2a01691 100644 --- a/gstreamer-base/sys/tests/layout.c +++ b/gstreamer-base/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-check/src/auto/test_clock.rs b/gstreamer-check/src/auto/test_clock.rs index 3f1647845..24dd5b79c 100644 --- a/gstreamer-check/src/auto/test_clock.rs +++ b/gstreamer-check/src/auto/test_clock.rs @@ -85,43 +85,17 @@ impl TestClock { #[doc(alias = "clock-type")] pub fn clock_type(&self) -> gst::ClockType { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"clock-type\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `clock-type` getter") - } + glib::ObjectExt::property(self, "clock-type") } #[doc(alias = "clock-type")] pub fn set_clock_type(&self, clock_type: gst::ClockType) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"clock-type\0".as_ptr() as *const _, - clock_type.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "clock-type", &clock_type) } #[doc(alias = "start-time")] pub fn start_time(&self) -> u64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"start-time\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `start-time` getter") - } + glib::ObjectExt::property(self, "start-time") } //#[doc(alias = "gst_test_clock_id_list_get_latest_time")] diff --git a/gstreamer-check/src/auto/versions.txt b/gstreamer-check/src/auto/versions.txt index 3e512c8a3..aab55f441 100644 --- a/gstreamer-check/src/auto/versions.txt +++ b/gstreamer-check/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) diff --git a/gstreamer-check/sys/build.rs b/gstreamer-check/sys/build.rs index 3bcb7f365..0b5138ef3 100644 --- a/gstreamer-check/sys/build.rs +++ b/gstreamer-check/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-check/sys/src/lib.rs b/gstreamer-check/sys/src/lib.rs index 83b4dcb2b..fef8d32db 100644 --- a/gstreamer-check/sys/src/lib.rs +++ b/gstreamer-check/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-check/sys/tests/abi.rs b/gstreamer-check/sys/tests/abi.rs index a5223a134..2afad72d2 100644 --- a/gstreamer-check/sys/tests/abi.rs +++ b/gstreamer-check/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-check/sys/tests/constant.c b/gstreamer-check/sys/tests/constant.c index 04ebaccec..21e92883e 100644 --- a/gstreamer-check/sys/tests/constant.c +++ b/gstreamer-check/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-check/sys/tests/layout.c b/gstreamer-check/sys/tests/layout.c index 04ad58e67..feed2d617 100644 --- a/gstreamer-check/sys/tests/layout.c +++ b/gstreamer-check/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-controller/src/auto/argb_control_binding.rs b/gstreamer-controller/src/auto/argb_control_binding.rs index 2a7c17ef1..3cf8b287a 100644 --- a/gstreamer-controller/src/auto/argb_control_binding.rs +++ b/gstreamer-controller/src/auto/argb_control_binding.rs @@ -106,103 +106,35 @@ pub trait ARGBControlBindingExt: 'static { impl> ARGBControlBindingExt for O { fn control_source_a(&self) -> Option { - unsafe { - let mut value = - glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"control-source-a\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `control-source-a` getter") - } + glib::ObjectExt::property(self.as_ref(), "control-source-a") } fn set_control_source_a>(&self, control_source_a: Option<&P>) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"control-source-a\0".as_ptr() as *const _, - control_source_a.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "control-source-a", &control_source_a) } fn control_source_b(&self) -> Option { - unsafe { - let mut value = - glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"control-source-b\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `control-source-b` getter") - } + glib::ObjectExt::property(self.as_ref(), "control-source-b") } fn set_control_source_b>(&self, control_source_b: Option<&P>) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"control-source-b\0".as_ptr() as *const _, - control_source_b.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "control-source-b", &control_source_b) } fn control_source_g(&self) -> Option { - unsafe { - let mut value = - glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"control-source-g\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `control-source-g` getter") - } + glib::ObjectExt::property(self.as_ref(), "control-source-g") } fn set_control_source_g>(&self, control_source_g: Option<&P>) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"control-source-g\0".as_ptr() as *const _, - control_source_g.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "control-source-g", &control_source_g) } fn control_source_r(&self) -> Option { - unsafe { - let mut value = - glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"control-source-r\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `control-source-r` getter") - } + glib::ObjectExt::property(self.as_ref(), "control-source-r") } fn set_control_source_r>(&self, control_source_r: Option<&P>) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"control-source-r\0".as_ptr() as *const _, - control_source_r.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "control-source-r", &control_source_r) } fn connect_control_source_a_notify( diff --git a/gstreamer-controller/src/auto/direct_control_binding.rs b/gstreamer-controller/src/auto/direct_control_binding.rs index 18dcbe7ec..a8db9ce2f 100644 --- a/gstreamer-controller/src/auto/direct_control_binding.rs +++ b/gstreamer-controller/src/auto/direct_control_binding.rs @@ -83,42 +83,15 @@ pub trait DirectControlBindingExt: 'static { impl> DirectControlBindingExt for O { fn is_absolute(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"absolute\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `absolute` getter") - } + glib::ObjectExt::property(self.as_ref(), "absolute") } fn control_source(&self) -> Option { - unsafe { - let mut value = - glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"control-source\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `control-source` getter") - } + glib::ObjectExt::property(self.as_ref(), "control-source") } fn set_control_source>(&self, control_source: Option<&P>) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"control-source\0".as_ptr() as *const _, - control_source.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "control-source", &control_source) } fn connect_control_source_notify( diff --git a/gstreamer-controller/src/auto/interpolation_control_source.rs b/gstreamer-controller/src/auto/interpolation_control_source.rs index 02995fdb1..c542a268c 100644 --- a/gstreamer-controller/src/auto/interpolation_control_source.rs +++ b/gstreamer-controller/src/auto/interpolation_control_source.rs @@ -59,28 +59,11 @@ pub trait InterpolationControlSourceExt: 'static { impl> InterpolationControlSourceExt for O { fn mode(&self) -> InterpolationMode { - unsafe { - let mut value = - glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"mode\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `mode` getter") - } + glib::ObjectExt::property(self.as_ref(), "mode") } fn set_mode(&self, mode: InterpolationMode) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"mode\0".as_ptr() as *const _, - mode.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "mode", &mode) } fn connect_mode_notify(&self, f: F) -> SignalHandlerId { diff --git a/gstreamer-controller/src/auto/lfo_control_source.rs b/gstreamer-controller/src/auto/lfo_control_source.rs index 31142907a..7ae94ff91 100644 --- a/gstreamer-controller/src/auto/lfo_control_source.rs +++ b/gstreamer-controller/src/auto/lfo_control_source.rs @@ -97,123 +97,43 @@ pub trait LFOControlSourceExt: 'static { impl> LFOControlSourceExt for O { fn amplitude(&self) -> f64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"amplitude\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `amplitude` getter") - } + glib::ObjectExt::property(self.as_ref(), "amplitude") } fn set_amplitude(&self, amplitude: f64) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"amplitude\0".as_ptr() as *const _, - amplitude.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "amplitude", &litude) } fn frequency(&self) -> f64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"frequency\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `frequency` getter") - } + glib::ObjectExt::property(self.as_ref(), "frequency") } fn set_frequency(&self, frequency: f64) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"frequency\0".as_ptr() as *const _, - frequency.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "frequency", &frequency) } fn offset(&self) -> f64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"offset\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `offset` getter") - } + glib::ObjectExt::property(self.as_ref(), "offset") } fn set_offset(&self, offset: f64) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"offset\0".as_ptr() as *const _, - offset.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "offset", &offset) } fn timeshift(&self) -> u64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"timeshift\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `timeshift` getter") - } + glib::ObjectExt::property(self.as_ref(), "timeshift") } fn set_timeshift(&self, timeshift: u64) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"timeshift\0".as_ptr() as *const _, - timeshift.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "timeshift", ×hift) } fn waveform(&self) -> LFOWaveform { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"waveform\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `waveform` getter") - } + glib::ObjectExt::property(self.as_ref(), "waveform") } fn set_waveform(&self, waveform: LFOWaveform) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"waveform\0".as_ptr() as *const _, - waveform.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "waveform", &waveform) } fn connect_amplitude_notify( diff --git a/gstreamer-controller/src/auto/trigger_control_source.rs b/gstreamer-controller/src/auto/trigger_control_source.rs index 4395a0485..9bc8d59b8 100644 --- a/gstreamer-controller/src/auto/trigger_control_source.rs +++ b/gstreamer-controller/src/auto/trigger_control_source.rs @@ -60,27 +60,11 @@ pub trait TriggerControlSourceExt: 'static { impl> TriggerControlSourceExt for O { fn tolerance(&self) -> i64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"tolerance\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `tolerance` getter") - } + glib::ObjectExt::property(self.as_ref(), "tolerance") } fn set_tolerance(&self, tolerance: i64) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"tolerance\0".as_ptr() as *const _, - tolerance.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "tolerance", &tolerance) } fn connect_tolerance_notify( diff --git a/gstreamer-controller/src/auto/versions.txt b/gstreamer-controller/src/auto/versions.txt index 3e512c8a3..aab55f441 100644 --- a/gstreamer-controller/src/auto/versions.txt +++ b/gstreamer-controller/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) diff --git a/gstreamer-controller/sys/build.rs b/gstreamer-controller/sys/build.rs index 3bcb7f365..0b5138ef3 100644 --- a/gstreamer-controller/sys/build.rs +++ b/gstreamer-controller/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-controller/sys/src/lib.rs b/gstreamer-controller/sys/src/lib.rs index 930d0768e..7d5d8a54b 100644 --- a/gstreamer-controller/sys/src/lib.rs +++ b/gstreamer-controller/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-controller/sys/tests/abi.rs b/gstreamer-controller/sys/tests/abi.rs index ca2c0ed98..a9a563580 100644 --- a/gstreamer-controller/sys/tests/abi.rs +++ b/gstreamer-controller/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-controller/sys/tests/constant.c b/gstreamer-controller/sys/tests/constant.c index df3800ec4..2bc3dda23 100644 --- a/gstreamer-controller/sys/tests/constant.c +++ b/gstreamer-controller/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-controller/sys/tests/layout.c b/gstreamer-controller/sys/tests/layout.c index 9cba0e78d..7071b4b48 100644 --- a/gstreamer-controller/sys/tests/layout.c +++ b/gstreamer-controller/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-editing-services/src/auto/audio_uri_source.rs b/gstreamer-editing-services/src/auto/audio_uri_source.rs index e63b10dfc..104d46c22 100644 --- a/gstreamer-editing-services/src/auto/audio_uri_source.rs +++ b/gstreamer-editing-services/src/auto/audio_uri_source.rs @@ -32,14 +32,6 @@ pub trait AudioUriSourceExt: 'static { impl> AudioUriSourceExt for O { fn uri(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"uri\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value.get().expect("Return Value for property `uri` getter") - } + glib::ObjectExt::property(self.as_ref(), "uri") } } diff --git a/gstreamer-editing-services/src/auto/container.rs b/gstreamer-editing-services/src/auto/container.rs index 3c8cf2d5f..17aaff633 100644 --- a/gstreamer-editing-services/src/auto/container.rs +++ b/gstreamer-editing-services/src/auto/container.rs @@ -149,17 +149,7 @@ impl> GESContainerExt for O { } fn height(&self) -> u32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"height\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `height` getter") - } + glib::ObjectExt::property(self.as_ref(), "height") } fn connect_child_added( diff --git a/gstreamer-editing-services/src/auto/effect.rs b/gstreamer-editing-services/src/auto/effect.rs index 06f755dc9..9f22aaa79 100644 --- a/gstreamer-editing-services/src/auto/effect.rs +++ b/gstreamer-editing-services/src/auto/effect.rs @@ -44,16 +44,6 @@ pub trait EffectExt: 'static { impl> EffectExt for O { fn bin_description(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"bin-description\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `bin-description` getter") - } + glib::ObjectExt::property(self.as_ref(), "bin-description") } } diff --git a/gstreamer-editing-services/src/auto/effect_clip.rs b/gstreamer-editing-services/src/auto/effect_clip.rs index a84de2b00..0707d59ec 100644 --- a/gstreamer-editing-services/src/auto/effect_clip.rs +++ b/gstreamer-editing-services/src/auto/effect_clip.rs @@ -53,30 +53,10 @@ pub trait EffectClipExt: 'static { impl> EffectClipExt for O { fn audio_bin_description(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"audio-bin-description\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `audio-bin-description` getter") - } + glib::ObjectExt::property(self.as_ref(), "audio-bin-description") } fn video_bin_description(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"video-bin-description\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `video-bin-description` getter") - } + glib::ObjectExt::property(self.as_ref(), "video-bin-description") } } diff --git a/gstreamer-editing-services/src/auto/group.rs b/gstreamer-editing-services/src/auto/group.rs index d37fa7a98..19b30cae0 100644 --- a/gstreamer-editing-services/src/auto/group.rs +++ b/gstreamer-editing-services/src/auto/group.rs @@ -87,123 +87,43 @@ pub trait GroupExt: 'static { impl> GroupExt for O { fn duration(&self) -> u64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"duration\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `duration` getter") - } + glib::ObjectExt::property(self.as_ref(), "duration") } fn set_duration(&self, duration: u64) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"duration\0".as_ptr() as *const _, - duration.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "duration", &duration) } fn in_point(&self) -> u64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"in-point\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `in-point` getter") - } + glib::ObjectExt::property(self.as_ref(), "in-point") } fn set_in_point(&self, in_point: u64) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"in-point\0".as_ptr() as *const _, - in_point.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "in-point", &in_point) } fn max_duration(&self) -> u64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"max-duration\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `max-duration` getter") - } + glib::ObjectExt::property(self.as_ref(), "max-duration") } fn set_max_duration(&self, max_duration: u64) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"max-duration\0".as_ptr() as *const _, - max_duration.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "max-duration", &max_duration) } fn priority(&self) -> u32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"priority\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `priority` getter") - } + glib::ObjectExt::property(self.as_ref(), "priority") } fn set_priority(&self, priority: u32) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"priority\0".as_ptr() as *const _, - priority.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "priority", &priority) } fn start(&self) -> u64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"start\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `start` getter") - } + glib::ObjectExt::property(self.as_ref(), "start") } fn set_start(&self, start: u64) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"start\0".as_ptr() as *const _, - start.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "start", &start) } fn connect_duration_notify(&self, f: F) -> SignalHandlerId { diff --git a/gstreamer-editing-services/src/auto/image_source.rs b/gstreamer-editing-services/src/auto/image_source.rs index 62dcaa23e..f322107ca 100644 --- a/gstreamer-editing-services/src/auto/image_source.rs +++ b/gstreamer-editing-services/src/auto/image_source.rs @@ -32,14 +32,6 @@ pub trait ImageSourceExt: 'static { impl> ImageSourceExt for O { fn uri(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"uri\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value.get().expect("Return Value for property `uri` getter") - } + glib::ObjectExt::property(self.as_ref(), "uri") } } diff --git a/gstreamer-editing-services/src/auto/marker.rs b/gstreamer-editing-services/src/auto/marker.rs index c0930c15a..947eda815 100644 --- a/gstreamer-editing-services/src/auto/marker.rs +++ b/gstreamer-editing-services/src/auto/marker.rs @@ -25,17 +25,7 @@ impl Marker { #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn position(&self) -> u64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"position\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `position` getter") - } + glib::ObjectExt::property(self, "position") } #[cfg(any(feature = "v1_18", feature = "dox"))] diff --git a/gstreamer-editing-services/src/auto/marker_list.rs b/gstreamer-editing-services/src/auto/marker_list.rs index 439b97071..e2a7d3df8 100644 --- a/gstreamer-editing-services/src/auto/marker_list.rs +++ b/gstreamer-editing-services/src/auto/marker_list.rs @@ -86,29 +86,13 @@ impl MarkerList { #[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] pub fn flags(&self) -> MarkerFlags { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"flags\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `flags` getter") - } + glib::ObjectExt::property(self, "flags") } #[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] pub fn set_flags(&self, flags: MarkerFlags) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"flags\0".as_ptr() as *const _, - flags.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "flags", &flags) } #[cfg(any(feature = "v1_18", feature = "dox"))] diff --git a/gstreamer-editing-services/src/auto/multi_file_source.rs b/gstreamer-editing-services/src/auto/multi_file_source.rs index 1a1a0ceda..497f8c349 100644 --- a/gstreamer-editing-services/src/auto/multi_file_source.rs +++ b/gstreamer-editing-services/src/auto/multi_file_source.rs @@ -40,14 +40,6 @@ pub trait MultiFileSourceExt: 'static { impl> MultiFileSourceExt for O { fn uri(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"uri\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value.get().expect("Return Value for property `uri` getter") - } + glib::ObjectExt::property(self.as_ref(), "uri") } } diff --git a/gstreamer-editing-services/src/auto/pipeline.rs b/gstreamer-editing-services/src/auto/pipeline.rs index cef18de8b..6907f432a 100644 --- a/gstreamer-editing-services/src/auto/pipeline.rs +++ b/gstreamer-editing-services/src/auto/pipeline.rs @@ -257,113 +257,39 @@ impl> GESPipelineExt for O { } fn audio_filter(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"audio-filter\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `audio-filter` getter") - } + glib::ObjectExt::property(self.as_ref(), "audio-filter") } fn set_audio_filter>(&self, audio_filter: Option<&P>) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"audio-filter\0".as_ptr() as *const _, - audio_filter.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "audio-filter", &audio_filter) } fn audio_sink(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"audio-sink\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `audio-sink` getter") - } + glib::ObjectExt::property(self.as_ref(), "audio-sink") } fn set_audio_sink>(&self, audio_sink: Option<&P>) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"audio-sink\0".as_ptr() as *const _, - audio_sink.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "audio-sink", &audio_sink) } fn timeline(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"timeline\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `timeline` getter") - } + glib::ObjectExt::property(self.as_ref(), "timeline") } fn video_filter(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"video-filter\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `video-filter` getter") - } + glib::ObjectExt::property(self.as_ref(), "video-filter") } fn set_video_filter>(&self, video_filter: Option<&P>) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"video-filter\0".as_ptr() as *const _, - video_filter.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "video-filter", &video_filter) } fn video_sink(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"video-sink\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `video-sink` getter") - } + glib::ObjectExt::property(self.as_ref(), "video-sink") } fn set_video_sink>(&self, video_sink: Option<&P>) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"video-sink\0".as_ptr() as *const _, - video_sink.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "video-sink", &video_sink) } fn connect_audio_filter_notify(&self, f: F) -> SignalHandlerId { diff --git a/gstreamer-editing-services/src/auto/test_clip.rs b/gstreamer-editing-services/src/auto/test_clip.rs index a61a5a430..2df455419 100644 --- a/gstreamer-editing-services/src/auto/test_clip.rs +++ b/gstreamer-editing-services/src/auto/test_clip.rs @@ -139,27 +139,11 @@ impl> TestClipExt for O { } fn freq(&self) -> f64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"freq\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `freq` getter") - } + glib::ObjectExt::property(self.as_ref(), "freq") } fn set_freq(&self, freq: f64) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"freq\0".as_ptr() as *const _, - freq.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "freq", &freq) } fn connect_freq_notify(&self, f: F) -> SignalHandlerId { diff --git a/gstreamer-editing-services/src/auto/text_overlay_clip.rs b/gstreamer-editing-services/src/auto/text_overlay_clip.rs index 692caee0b..d651d1f7d 100644 --- a/gstreamer-editing-services/src/auto/text_overlay_clip.rs +++ b/gstreamer-editing-services/src/auto/text_overlay_clip.rs @@ -218,23 +218,11 @@ impl> TextOverlayClipExt for O { } fn set_halignment(&self, halignment: TextHAlign) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"halignment\0".as_ptr() as *const _, - halignment.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "halignment", &halignment) } fn set_valignment(&self, valignment: TextVAlign) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"valignment\0".as_ptr() as *const _, - valignment.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "valignment", &valignment) } fn connect_color_notify(&self, f: F) -> SignalHandlerId { diff --git a/gstreamer-editing-services/src/auto/timeline_element.rs b/gstreamer-editing-services/src/auto/timeline_element.rs index ed8bdadf2..d0c67bde0 100644 --- a/gstreamer-editing-services/src/auto/timeline_element.rs +++ b/gstreamer-editing-services/src/auto/timeline_element.rs @@ -677,51 +677,19 @@ impl> TimelineElementExt for O { } fn in_point(&self) -> u64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"in-point\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `in-point` getter") - } + glib::ObjectExt::property(self.as_ref(), "in-point") } fn set_in_point(&self, in_point: u64) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"in-point\0".as_ptr() as *const _, - in_point.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "in-point", &in_point) } fn is_serialize(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"serialize\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `serialize` getter") - } + glib::ObjectExt::property(self.as_ref(), "serialize") } fn set_serialize(&self, serialize: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"serialize\0".as_ptr() as *const _, - serialize.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "serialize", &serialize) } //#[cfg(any(feature = "v1_18", feature = "dox"))] diff --git a/gstreamer-editing-services/src/auto/title_clip.rs b/gstreamer-editing-services/src/auto/title_clip.rs index f3778421e..8d0f1f1d6 100644 --- a/gstreamer-editing-services/src/auto/title_clip.rs +++ b/gstreamer-editing-services/src/auto/title_clip.rs @@ -250,31 +250,11 @@ impl> TitleClipExt for O { } fn background(&self) -> u32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"background\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `background` getter") - } + glib::ObjectExt::property(self.as_ref(), "background") } fn color(&self) -> u32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"color\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `color` getter") - } + glib::ObjectExt::property(self.as_ref(), "color") } fn connect_background_notify(&self, f: F) -> SignalHandlerId { diff --git a/gstreamer-editing-services/src/auto/track.rs b/gstreamer-editing-services/src/auto/track.rs index 963dc458c..5b3c90843 100644 --- a/gstreamer-editing-services/src/auto/track.rs +++ b/gstreamer-editing-services/src/auto/track.rs @@ -283,71 +283,27 @@ impl> GESTrackExt for O { } fn duration(&self) -> u64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"duration\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `duration` getter") - } + glib::ObjectExt::property(self.as_ref(), "duration") } #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn id(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"id\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value.get().expect("Return Value for property `id` getter") - } + glib::ObjectExt::property(self.as_ref(), "id") } #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_id(&self, id: Option<&str>) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"id\0".as_ptr() as *const _, - id.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "id", &id) } fn get_property_restriction_caps(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"restriction-caps\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `restriction-caps` getter") - } + glib::ObjectExt::property(self.as_ref(), "restriction-caps") } fn track_type(&self) -> TrackType { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"track-type\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `track-type` getter") - } + glib::ObjectExt::property(self.as_ref(), "track-type") } fn connect_commited(&self, f: F) -> SignalHandlerId { diff --git a/gstreamer-editing-services/src/auto/transition_clip.rs b/gstreamer-editing-services/src/auto/transition_clip.rs index bde52cbac..55dc499e9 100644 --- a/gstreamer-editing-services/src/auto/transition_clip.rs +++ b/gstreamer-editing-services/src/auto/transition_clip.rs @@ -60,28 +60,11 @@ pub trait TransitionClipExt: 'static { impl> TransitionClipExt for O { fn vtype(&self) -> VideoStandardTransitionType { - unsafe { - let mut value = - glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"vtype\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `vtype` getter") - } + glib::ObjectExt::property(self.as_ref(), "vtype") } fn set_vtype(&self, vtype: VideoStandardTransitionType) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"vtype\0".as_ptr() as *const _, - vtype.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "vtype", &vtype) } fn connect_vtype_notify(&self, f: F) -> SignalHandlerId { diff --git a/gstreamer-editing-services/src/auto/uri_clip_asset.rs b/gstreamer-editing-services/src/auto/uri_clip_asset.rs index 962b97c9f..f9ae26854 100644 --- a/gstreamer-editing-services/src/auto/uri_clip_asset.rs +++ b/gstreamer-editing-services/src/auto/uri_clip_asset.rs @@ -162,29 +162,13 @@ impl> UriClipAssetExt for O { } fn set_duration(&self, duration: u64) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"duration\0".as_ptr() as *const _, - duration.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "duration", &duration) } #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn is_nested_timeline(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"is-nested-timeline\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `is-nested-timeline` getter") - } + glib::ObjectExt::property(self.as_ref(), "is-nested-timeline") } fn connect_duration_notify(&self, f: F) -> SignalHandlerId { diff --git a/gstreamer-editing-services/src/auto/versions.txt b/gstreamer-editing-services/src/auto/versions.txt index 3e512c8a3..aab55f441 100644 --- a/gstreamer-editing-services/src/auto/versions.txt +++ b/gstreamer-editing-services/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) diff --git a/gstreamer-editing-services/src/auto/video_transition.rs b/gstreamer-editing-services/src/auto/video_transition.rs index d8b53603b..7356882d7 100644 --- a/gstreamer-editing-services/src/auto/video_transition.rs +++ b/gstreamer-editing-services/src/auto/video_transition.rs @@ -135,27 +135,11 @@ impl> VideoTransitionExt for O { } fn inverts(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"invert\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `invert` getter") - } + glib::ObjectExt::property(self.as_ref(), "invert") } fn set_invert(&self, invert: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"invert\0".as_ptr() as *const _, - invert.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "invert", &invert) } fn connect_border_notify(&self, f: F) -> SignalHandlerId { diff --git a/gstreamer-editing-services/src/auto/video_uri_source.rs b/gstreamer-editing-services/src/auto/video_uri_source.rs index 4efbe0adb..5bcab93ff 100644 --- a/gstreamer-editing-services/src/auto/video_uri_source.rs +++ b/gstreamer-editing-services/src/auto/video_uri_source.rs @@ -32,14 +32,6 @@ pub trait VideoUriSourceExt: 'static { impl> VideoUriSourceExt for O { fn uri(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"uri\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value.get().expect("Return Value for property `uri` getter") - } + glib::ObjectExt::property(self.as_ref(), "uri") } } diff --git a/gstreamer-editing-services/sys/build.rs b/gstreamer-editing-services/sys/build.rs index 3bcb7f365..0b5138ef3 100644 --- a/gstreamer-editing-services/sys/build.rs +++ b/gstreamer-editing-services/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-editing-services/sys/src/lib.rs b/gstreamer-editing-services/sys/src/lib.rs index 8410b01d2..2ab58ece6 100644 --- a/gstreamer-editing-services/sys/src/lib.rs +++ b/gstreamer-editing-services/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-editing-services/sys/tests/abi.rs b/gstreamer-editing-services/sys/tests/abi.rs index e172b871d..ae0bf3afe 100644 --- a/gstreamer-editing-services/sys/tests/abi.rs +++ b/gstreamer-editing-services/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-editing-services/sys/tests/constant.c b/gstreamer-editing-services/sys/tests/constant.c index 16a86efa7..1825de202 100644 --- a/gstreamer-editing-services/sys/tests/constant.c +++ b/gstreamer-editing-services/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-editing-services/sys/tests/layout.c b/gstreamer-editing-services/sys/tests/layout.c index 383818e9e..834fe8e6a 100644 --- a/gstreamer-editing-services/sys/tests/layout.c +++ b/gstreamer-editing-services/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-gl/egl/src/auto/versions.txt b/gstreamer-gl/egl/src/auto/versions.txt index 3e512c8a3..aab55f441 100644 --- a/gstreamer-gl/egl/src/auto/versions.txt +++ b/gstreamer-gl/egl/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) diff --git a/gstreamer-gl/egl/sys/build.rs b/gstreamer-gl/egl/sys/build.rs index 3bcb7f365..0b5138ef3 100644 --- a/gstreamer-gl/egl/sys/build.rs +++ b/gstreamer-gl/egl/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-gl/egl/sys/src/lib.rs b/gstreamer-gl/egl/sys/src/lib.rs index 7a88f5b34..e78daf895 100644 --- a/gstreamer-gl/egl/sys/src/lib.rs +++ b/gstreamer-gl/egl/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-gl/egl/sys/tests/abi.rs b/gstreamer-gl/egl/sys/tests/abi.rs index 393d3f280..e874532f9 100644 --- a/gstreamer-gl/egl/sys/tests/abi.rs +++ b/gstreamer-gl/egl/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-gl/egl/sys/tests/constant.c b/gstreamer-gl/egl/sys/tests/constant.c index 23e72842d..0a33a0242 100644 --- a/gstreamer-gl/egl/sys/tests/constant.c +++ b/gstreamer-gl/egl/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-gl/egl/sys/tests/layout.c b/gstreamer-gl/egl/sys/tests/layout.c index 9ad016658..d26bd8f98 100644 --- a/gstreamer-gl/egl/sys/tests/layout.c +++ b/gstreamer-gl/egl/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-gl/src/auto/gl_base_filter.rs b/gstreamer-gl/src/auto/gl_base_filter.rs index 766c90526..3b38a6f94 100644 --- a/gstreamer-gl/src/auto/gl_base_filter.rs +++ b/gstreamer-gl/src/auto/gl_base_filter.rs @@ -70,17 +70,7 @@ impl> GLBaseFilterExt for O { } fn context(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"context\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `context` getter") - } + glib::ObjectExt::property(self.as_ref(), "context") } fn connect_context_notify( diff --git a/gstreamer-gl/src/auto/gl_base_src.rs b/gstreamer-gl/src/auto/gl_base_src.rs index f9a873ff2..6285749f5 100644 --- a/gstreamer-gl/src/auto/gl_base_src.rs +++ b/gstreamer-gl/src/auto/gl_base_src.rs @@ -45,27 +45,11 @@ pub trait GLBaseSrcExt: 'static { impl> GLBaseSrcExt for O { fn timestamp_offset(&self) -> i64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"timestamp-offset\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `timestamp-offset` getter") - } + glib::ObjectExt::property(self.as_ref(), "timestamp-offset") } fn set_timestamp_offset(&self, timestamp_offset: i64) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"timestamp-offset\0".as_ptr() as *const _, - timestamp_offset.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "timestamp-offset", ×tamp_offset) } fn connect_timestamp_offset_notify( diff --git a/gstreamer-gl/src/auto/gl_overlay_compositor.rs b/gstreamer-gl/src/auto/gl_overlay_compositor.rs index 554789d12..92bf04759 100644 --- a/gstreamer-gl/src/auto/gl_overlay_compositor.rs +++ b/gstreamer-gl/src/auto/gl_overlay_compositor.rs @@ -65,29 +65,13 @@ impl GLOverlayCompositor { #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn is_yinvert(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"yinvert\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `yinvert` getter") - } + glib::ObjectExt::property(self, "yinvert") } #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] pub fn set_yinvert(&self, yinvert: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"yinvert\0".as_ptr() as *const _, - yinvert.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "yinvert", &yinvert) } #[doc(alias = "gst_gl_overlay_compositor_add_caps")] diff --git a/gstreamer-gl/src/auto/gl_view_convert.rs b/gstreamer-gl/src/auto/gl_view_convert.rs index 4b60e2405..bc761cfa8 100644 --- a/gstreamer-gl/src/auto/gl_view_convert.rs +++ b/gstreamer-gl/src/auto/gl_view_convert.rs @@ -95,140 +95,52 @@ impl GLViewConvert { #[doc(alias = "downmix-mode")] pub fn downmix_mode(&self) -> GLStereoDownmix { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"downmix-mode\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `downmix-mode` getter") - } + glib::ObjectExt::property(self, "downmix-mode") } #[doc(alias = "downmix-mode")] pub fn set_downmix_mode(&self, downmix_mode: GLStereoDownmix) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"downmix-mode\0".as_ptr() as *const _, - downmix_mode.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "downmix-mode", &downmix_mode) } #[doc(alias = "input-flags-override")] pub fn input_flags_override(&self) -> gst_video::VideoMultiviewFlags { - unsafe { - let mut value = glib::Value::from_type( - ::static_type(), - ); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"input-flags-override\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `input-flags-override` getter") - } + glib::ObjectExt::property(self, "input-flags-override") } #[doc(alias = "input-flags-override")] pub fn set_input_flags_override(&self, input_flags_override: gst_video::VideoMultiviewFlags) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"input-flags-override\0".as_ptr() as *const _, - input_flags_override.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "input-flags-override", &input_flags_override) } #[doc(alias = "input-mode-override")] pub fn input_mode_override(&self) -> gst_video::VideoMultiviewMode { - unsafe { - let mut value = glib::Value::from_type( - ::static_type(), - ); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"input-mode-override\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `input-mode-override` getter") - } + glib::ObjectExt::property(self, "input-mode-override") } #[doc(alias = "input-mode-override")] pub fn set_input_mode_override(&self, input_mode_override: gst_video::VideoMultiviewMode) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"input-mode-override\0".as_ptr() as *const _, - input_mode_override.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "input-mode-override", &input_mode_override) } #[doc(alias = "output-flags-override")] pub fn output_flags_override(&self) -> gst_video::VideoMultiviewFlags { - unsafe { - let mut value = glib::Value::from_type( - ::static_type(), - ); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"output-flags-override\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `output-flags-override` getter") - } + glib::ObjectExt::property(self, "output-flags-override") } #[doc(alias = "output-flags-override")] pub fn set_output_flags_override(&self, output_flags_override: gst_video::VideoMultiviewFlags) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"output-flags-override\0".as_ptr() as *const _, - output_flags_override.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "output-flags-override", &output_flags_override) } #[doc(alias = "output-mode-override")] pub fn output_mode_override(&self) -> gst_video::VideoMultiviewMode { - unsafe { - let mut value = glib::Value::from_type( - ::static_type(), - ); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"output-mode-override\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `output-mode-override` getter") - } + glib::ObjectExt::property(self, "output-mode-override") } #[doc(alias = "output-mode-override")] pub fn set_output_mode_override(&self, output_mode_override: gst_video::VideoMultiviewMode) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"output-mode-override\0".as_ptr() as *const _, - output_mode_override.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "output-mode-override", &output_mode_override) } #[doc(alias = "downmix-mode")] diff --git a/gstreamer-gl/src/auto/versions.txt b/gstreamer-gl/src/auto/versions.txt index 3e512c8a3..aab55f441 100644 --- a/gstreamer-gl/src/auto/versions.txt +++ b/gstreamer-gl/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) diff --git a/gstreamer-gl/sys/build.rs b/gstreamer-gl/sys/build.rs index 3bcb7f365..0b5138ef3 100644 --- a/gstreamer-gl/sys/build.rs +++ b/gstreamer-gl/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-gl/sys/src/lib.rs b/gstreamer-gl/sys/src/lib.rs index 9ca7554e4..fb11e645f 100644 --- a/gstreamer-gl/sys/src/lib.rs +++ b/gstreamer-gl/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-gl/sys/tests/abi.rs b/gstreamer-gl/sys/tests/abi.rs index e5bc76622..8c9e3810c 100644 --- a/gstreamer-gl/sys/tests/abi.rs +++ b/gstreamer-gl/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-gl/sys/tests/constant.c b/gstreamer-gl/sys/tests/constant.c index 6572414ad..7fefdfaab 100644 --- a/gstreamer-gl/sys/tests/constant.c +++ b/gstreamer-gl/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-gl/sys/tests/layout.c b/gstreamer-gl/sys/tests/layout.c index a572d83e8..12250c100 100644 --- a/gstreamer-gl/sys/tests/layout.c +++ b/gstreamer-gl/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-gl/wayland/src/auto/versions.txt b/gstreamer-gl/wayland/src/auto/versions.txt index 3e512c8a3..aab55f441 100644 --- a/gstreamer-gl/wayland/src/auto/versions.txt +++ b/gstreamer-gl/wayland/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) diff --git a/gstreamer-gl/wayland/sys/build.rs b/gstreamer-gl/wayland/sys/build.rs index 3bcb7f365..0b5138ef3 100644 --- a/gstreamer-gl/wayland/sys/build.rs +++ b/gstreamer-gl/wayland/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-gl/wayland/sys/src/lib.rs b/gstreamer-gl/wayland/sys/src/lib.rs index 4c851f2b2..2a4088e5d 100644 --- a/gstreamer-gl/wayland/sys/src/lib.rs +++ b/gstreamer-gl/wayland/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-gl/wayland/sys/tests/abi.rs b/gstreamer-gl/wayland/sys/tests/abi.rs index b185ca020..1fb8913fd 100644 --- a/gstreamer-gl/wayland/sys/tests/abi.rs +++ b/gstreamer-gl/wayland/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-gl/wayland/sys/tests/constant.c b/gstreamer-gl/wayland/sys/tests/constant.c index 04ebaccec..21e92883e 100644 --- a/gstreamer-gl/wayland/sys/tests/constant.c +++ b/gstreamer-gl/wayland/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-gl/wayland/sys/tests/layout.c b/gstreamer-gl/wayland/sys/tests/layout.c index ce8eaed97..30035bf33 100644 --- a/gstreamer-gl/wayland/sys/tests/layout.c +++ b/gstreamer-gl/wayland/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-gl/x11/src/auto/versions.txt b/gstreamer-gl/x11/src/auto/versions.txt index 3e512c8a3..aab55f441 100644 --- a/gstreamer-gl/x11/src/auto/versions.txt +++ b/gstreamer-gl/x11/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) diff --git a/gstreamer-gl/x11/sys/build.rs b/gstreamer-gl/x11/sys/build.rs index 3bcb7f365..0b5138ef3 100644 --- a/gstreamer-gl/x11/sys/build.rs +++ b/gstreamer-gl/x11/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-gl/x11/sys/src/lib.rs b/gstreamer-gl/x11/sys/src/lib.rs index 0d59f8961..ddd97b024 100644 --- a/gstreamer-gl/x11/sys/src/lib.rs +++ b/gstreamer-gl/x11/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-gl/x11/sys/tests/abi.rs b/gstreamer-gl/x11/sys/tests/abi.rs index 0d5a718ea..6f69f7730 100644 --- a/gstreamer-gl/x11/sys/tests/abi.rs +++ b/gstreamer-gl/x11/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-gl/x11/sys/tests/constant.c b/gstreamer-gl/x11/sys/tests/constant.c index 04ebaccec..21e92883e 100644 --- a/gstreamer-gl/x11/sys/tests/constant.c +++ b/gstreamer-gl/x11/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-gl/x11/sys/tests/layout.c b/gstreamer-gl/x11/sys/tests/layout.c index bf4d5baf7..bb9d99283 100644 --- a/gstreamer-gl/x11/sys/tests/layout.c +++ b/gstreamer-gl/x11/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-mpegts/sys/build.rs b/gstreamer-mpegts/sys/build.rs index 3bcb7f365..0b5138ef3 100644 --- a/gstreamer-mpegts/sys/build.rs +++ b/gstreamer-mpegts/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-mpegts/sys/src/lib.rs b/gstreamer-mpegts/sys/src/lib.rs index 530b0819d..a95c25190 100644 --- a/gstreamer-mpegts/sys/src/lib.rs +++ b/gstreamer-mpegts/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-mpegts/sys/tests/abi.rs b/gstreamer-mpegts/sys/tests/abi.rs index c32cdc612..a90d45dad 100644 --- a/gstreamer-mpegts/sys/tests/abi.rs +++ b/gstreamer-mpegts/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-mpegts/sys/tests/constant.c b/gstreamer-mpegts/sys/tests/constant.c index 8892eb21f..115101980 100644 --- a/gstreamer-mpegts/sys/tests/constant.c +++ b/gstreamer-mpegts/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-mpegts/sys/tests/layout.c b/gstreamer-mpegts/sys/tests/layout.c index 9a3056646..f699ddff9 100644 --- a/gstreamer-mpegts/sys/tests/layout.c +++ b/gstreamer-mpegts/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-net/src/auto/net_client_clock.rs b/gstreamer-net/src/auto/net_client_clock.rs index d9734c870..a2d1f3a04 100644 --- a/gstreamer-net/src/auto/net_client_clock.rs +++ b/gstreamer-net/src/auto/net_client_clock.rs @@ -24,181 +24,67 @@ glib::wrapper! { impl NetClientClock { pub fn address(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"address\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `address` getter") - } + glib::ObjectExt::property(self, "address") } pub fn set_address(&self, address: Option<&str>) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"address\0".as_ptr() as *const _, - address.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "address", &address) } #[doc(alias = "base-time")] pub fn base_time(&self) -> u64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"base-time\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `base-time` getter") - } + glib::ObjectExt::property(self, "base-time") } pub fn bus(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"bus\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value.get().expect("Return Value for property `bus` getter") - } + glib::ObjectExt::property(self, "bus") } pub fn set_bus>(&self, bus: Option<&P>) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"bus\0".as_ptr() as *const _, - bus.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "bus", &bus) } #[doc(alias = "internal-clock")] pub fn internal_clock(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"internal-clock\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `internal-clock` getter") - } + glib::ObjectExt::property(self, "internal-clock") } #[doc(alias = "minimum-update-interval")] pub fn minimum_update_interval(&self) -> u64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"minimum-update-interval\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `minimum-update-interval` getter") - } + glib::ObjectExt::property(self, "minimum-update-interval") } #[doc(alias = "minimum-update-interval")] pub fn set_minimum_update_interval(&self, minimum_update_interval: u64) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"minimum-update-interval\0".as_ptr() as *const _, - minimum_update_interval.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "minimum-update-interval", &minimum_update_interval) } pub fn port(&self) -> i32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"port\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `port` getter") - } + glib::ObjectExt::property(self, "port") } pub fn set_port(&self, port: i32) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"port\0".as_ptr() as *const _, - port.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "port", &port) } #[doc(alias = "qos-dscp")] pub fn qos_dscp(&self) -> i32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"qos-dscp\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `qos-dscp` getter") - } + glib::ObjectExt::property(self, "qos-dscp") } #[doc(alias = "qos-dscp")] pub fn set_qos_dscp(&self, qos_dscp: i32) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"qos-dscp\0".as_ptr() as *const _, - qos_dscp.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "qos-dscp", &qos_dscp) } #[doc(alias = "round-trip-limit")] pub fn round_trip_limit(&self) -> u64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"round-trip-limit\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `round-trip-limit` getter") - } + glib::ObjectExt::property(self, "round-trip-limit") } #[doc(alias = "round-trip-limit")] pub fn set_round_trip_limit(&self, round_trip_limit: u64) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"round-trip-limit\0".as_ptr() as *const _, - round_trip_limit.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "round-trip-limit", &round_trip_limit) } #[doc(alias = "address")] diff --git a/gstreamer-net/src/auto/net_time_provider.rs b/gstreamer-net/src/auto/net_time_provider.rs index 447ee5bfa..499b1d5f3 100644 --- a/gstreamer-net/src/auto/net_time_provider.rs +++ b/gstreamer-net/src/auto/net_time_provider.rs @@ -23,95 +23,33 @@ glib::wrapper! { impl NetTimeProvider { pub fn is_active(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"active\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `active` getter") - } + glib::ObjectExt::property(self, "active") } pub fn set_active(&self, active: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"active\0".as_ptr() as *const _, - active.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "active", &active) } pub fn address(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"address\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `address` getter") - } + glib::ObjectExt::property(self, "address") } pub fn clock(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"clock\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `clock` getter") - } + glib::ObjectExt::property(self, "clock") } pub fn port(&self) -> i32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"port\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `port` getter") - } + glib::ObjectExt::property(self, "port") } #[doc(alias = "qos-dscp")] pub fn qos_dscp(&self) -> i32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"qos-dscp\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `qos-dscp` getter") - } + glib::ObjectExt::property(self, "qos-dscp") } #[doc(alias = "qos-dscp")] pub fn set_qos_dscp(&self, qos_dscp: i32) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"qos-dscp\0".as_ptr() as *const _, - qos_dscp.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "qos-dscp", &qos_dscp) } #[doc(alias = "active")] diff --git a/gstreamer-net/src/auto/ptp_clock.rs b/gstreamer-net/src/auto/ptp_clock.rs index fe71cfbdc..69b5d7d90 100644 --- a/gstreamer-net/src/auto/ptp_clock.rs +++ b/gstreamer-net/src/auto/ptp_clock.rs @@ -22,62 +22,22 @@ glib::wrapper! { impl PtpClock { pub fn domain(&self) -> u32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"domain\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `domain` getter") - } + glib::ObjectExt::property(self, "domain") } #[doc(alias = "grandmaster-clock-id")] pub fn grandmaster_clock_id(&self) -> u64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"grandmaster-clock-id\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `grandmaster-clock-id` getter") - } + glib::ObjectExt::property(self, "grandmaster-clock-id") } #[doc(alias = "internal-clock")] pub fn internal_clock(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"internal-clock\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `internal-clock` getter") - } + glib::ObjectExt::property(self, "internal-clock") } #[doc(alias = "master-clock-id")] pub fn master_clock_id(&self) -> u64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"master-clock-id\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `master-clock-id` getter") - } + glib::ObjectExt::property(self, "master-clock-id") } #[doc(alias = "grandmaster-clock-id")] diff --git a/gstreamer-net/src/auto/versions.txt b/gstreamer-net/src/auto/versions.txt index 3e512c8a3..aab55f441 100644 --- a/gstreamer-net/src/auto/versions.txt +++ b/gstreamer-net/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) diff --git a/gstreamer-net/sys/build.rs b/gstreamer-net/sys/build.rs index 3bcb7f365..0b5138ef3 100644 --- a/gstreamer-net/sys/build.rs +++ b/gstreamer-net/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-net/sys/src/lib.rs b/gstreamer-net/sys/src/lib.rs index 097c083f6..c67c3d1a3 100644 --- a/gstreamer-net/sys/src/lib.rs +++ b/gstreamer-net/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-net/sys/tests/abi.rs b/gstreamer-net/sys/tests/abi.rs index ffc45f3f4..ce280b7d1 100644 --- a/gstreamer-net/sys/tests/abi.rs +++ b/gstreamer-net/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-net/sys/tests/constant.c b/gstreamer-net/sys/tests/constant.c index a295487b1..80f83bbb9 100644 --- a/gstreamer-net/sys/tests/constant.c +++ b/gstreamer-net/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-net/sys/tests/layout.c b/gstreamer-net/sys/tests/layout.c index 88c29f67b..3bb6116d4 100644 --- a/gstreamer-net/sys/tests/layout.c +++ b/gstreamer-net/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-pbutils/src/auto/discoverer.rs b/gstreamer-pbutils/src/auto/discoverer.rs index 3d7a665fc..4823216e6 100644 --- a/gstreamer-pbutils/src/auto/discoverer.rs +++ b/gstreamer-pbutils/src/auto/discoverer.rs @@ -87,30 +87,14 @@ impl Discoverer { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(alias = "use-cache")] pub fn uses_cache(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"use-cache\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `use-cache` getter") - } + glib::ObjectExt::property(self, "use-cache") } #[cfg(any(feature = "v1_16", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] #[doc(alias = "use-cache")] pub fn set_use_cache(&self, use_cache: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"use-cache\0".as_ptr() as *const _, - use_cache.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "use-cache", &use_cache) } #[doc(alias = "discovered")] diff --git a/gstreamer-pbutils/src/auto/versions.txt b/gstreamer-pbutils/src/auto/versions.txt index 3e512c8a3..aab55f441 100644 --- a/gstreamer-pbutils/src/auto/versions.txt +++ b/gstreamer-pbutils/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) diff --git a/gstreamer-pbutils/sys/build.rs b/gstreamer-pbutils/sys/build.rs index 3bcb7f365..0b5138ef3 100644 --- a/gstreamer-pbutils/sys/build.rs +++ b/gstreamer-pbutils/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-pbutils/sys/src/lib.rs b/gstreamer-pbutils/sys/src/lib.rs index 338efa9ff..cdf7081a2 100644 --- a/gstreamer-pbutils/sys/src/lib.rs +++ b/gstreamer-pbutils/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-pbutils/sys/tests/abi.rs b/gstreamer-pbutils/sys/tests/abi.rs index 4f88f9a92..ff0d86a9e 100644 --- a/gstreamer-pbutils/sys/tests/abi.rs +++ b/gstreamer-pbutils/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-pbutils/sys/tests/constant.c b/gstreamer-pbutils/sys/tests/constant.c index 2be0d6d6b..2ec7e8324 100644 --- a/gstreamer-pbutils/sys/tests/constant.c +++ b/gstreamer-pbutils/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-pbutils/sys/tests/layout.c b/gstreamer-pbutils/sys/tests/layout.c index b279da790..5ec50f391 100644 --- a/gstreamer-pbutils/sys/tests/layout.c +++ b/gstreamer-pbutils/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-player/src/auto/player.rs b/gstreamer-player/src/auto/player.rs index d510b1537..7027df4ad 100644 --- a/gstreamer-player/src/auto/player.rs +++ b/gstreamer-player/src/auto/player.rs @@ -347,72 +347,26 @@ impl Player { } pub fn suburi(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"suburi\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `suburi` getter") - } + glib::ObjectExt::property(self, "suburi") } pub fn set_suburi(&self, suburi: Option<&str>) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"suburi\0".as_ptr() as *const _, - suburi.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "suburi", &suburi) } #[doc(alias = "video-multiview-flags")] pub fn video_multiview_flags(&self) -> gst_video::VideoMultiviewFlags { - unsafe { - let mut value = glib::Value::from_type( - ::static_type(), - ); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"video-multiview-flags\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `video-multiview-flags` getter") - } + glib::ObjectExt::property(self, "video-multiview-flags") } #[doc(alias = "video-multiview-flags")] pub fn set_video_multiview_flags(&self, video_multiview_flags: gst_video::VideoMultiviewFlags) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"video-multiview-flags\0".as_ptr() as *const _, - video_multiview_flags.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "video-multiview-flags", &video_multiview_flags) } #[doc(alias = "video-multiview-mode")] pub fn video_multiview_mode(&self) -> gst_video::VideoMultiviewFramePacking { - unsafe { - let mut value = glib::Value::from_type( - ::static_type(), - ); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"video-multiview-mode\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `video-multiview-mode` getter") - } + glib::ObjectExt::property(self, "video-multiview-mode") } #[doc(alias = "video-multiview-mode")] @@ -420,29 +374,12 @@ impl Player { &self, video_multiview_mode: gst_video::VideoMultiviewFramePacking, ) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"video-multiview-mode\0".as_ptr() as *const _, - video_multiview_mode.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "video-multiview-mode", &video_multiview_mode) } #[doc(alias = "video-renderer")] pub fn video_renderer(&self) -> Option { - unsafe { - let mut value = - glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"video-renderer\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `video-renderer` getter") - } + glib::ObjectExt::property(self, "video-renderer") } #[doc(alias = "gst_player_get_audio_streams")] diff --git a/gstreamer-player/src/auto/player_gmain_context_signal_dispatcher.rs b/gstreamer-player/src/auto/player_gmain_context_signal_dispatcher.rs index d146a7c59..71c8aafc3 100644 --- a/gstreamer-player/src/auto/player_gmain_context_signal_dispatcher.rs +++ b/gstreamer-player/src/auto/player_gmain_context_signal_dispatcher.rs @@ -20,18 +20,7 @@ glib::wrapper! { impl PlayerGMainContextSignalDispatcher { #[doc(alias = "application-context")] pub fn application_context(&self) -> Option { - unsafe { - let mut value = - glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"application-context\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `application-context` getter") - } + glib::ObjectExt::property(self, "application-context") } } 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 0eee49777..ba2bb2069 100644 --- a/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs +++ b/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs @@ -70,28 +70,12 @@ impl PlayerVideoOverlayVideoRenderer { #[doc(alias = "video-sink")] pub fn video_sink(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"video-sink\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `video-sink` getter") - } + glib::ObjectExt::property(self, "video-sink") } #[doc(alias = "video-sink")] pub fn set_video_sink>(&self, video_sink: Option<&P>) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"video-sink\0".as_ptr() as *const _, - video_sink.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "video-sink", &video_sink) } #[doc(alias = "video-sink")] diff --git a/gstreamer-player/src/auto/versions.txt b/gstreamer-player/src/auto/versions.txt index 3e512c8a3..aab55f441 100644 --- a/gstreamer-player/src/auto/versions.txt +++ b/gstreamer-player/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) diff --git a/gstreamer-player/sys/build.rs b/gstreamer-player/sys/build.rs index 3bcb7f365..0b5138ef3 100644 --- a/gstreamer-player/sys/build.rs +++ b/gstreamer-player/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-player/sys/src/lib.rs b/gstreamer-player/sys/src/lib.rs index f1fc544a3..c9c6352d7 100644 --- a/gstreamer-player/sys/src/lib.rs +++ b/gstreamer-player/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-player/sys/tests/abi.rs b/gstreamer-player/sys/tests/abi.rs index e49323b3b..05e2c7f88 100644 --- a/gstreamer-player/sys/tests/abi.rs +++ b/gstreamer-player/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-player/sys/tests/constant.c b/gstreamer-player/sys/tests/constant.c index 0d199f40a..fcb951f25 100644 --- a/gstreamer-player/sys/tests/constant.c +++ b/gstreamer-player/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-player/sys/tests/layout.c b/gstreamer-player/sys/tests/layout.c index 548fcf459..3f939236a 100644 --- a/gstreamer-player/sys/tests/layout.c +++ b/gstreamer-player/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-rtp/src/auto/versions.txt b/gstreamer-rtp/src/auto/versions.txt index 3e512c8a3..aab55f441 100644 --- a/gstreamer-rtp/src/auto/versions.txt +++ b/gstreamer-rtp/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) diff --git a/gstreamer-rtp/sys/build.rs b/gstreamer-rtp/sys/build.rs index 3bcb7f365..0b5138ef3 100644 --- a/gstreamer-rtp/sys/build.rs +++ b/gstreamer-rtp/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-rtp/sys/src/lib.rs b/gstreamer-rtp/sys/src/lib.rs index 0d68b7eb9..1d888c0b6 100644 --- a/gstreamer-rtp/sys/src/lib.rs +++ b/gstreamer-rtp/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-rtp/sys/tests/abi.rs b/gstreamer-rtp/sys/tests/abi.rs index c0a4d1995..efa22e39b 100644 --- a/gstreamer-rtp/sys/tests/abi.rs +++ b/gstreamer-rtp/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-rtp/sys/tests/constant.c b/gstreamer-rtp/sys/tests/constant.c index d7c7e172e..d67aaca87 100644 --- a/gstreamer-rtp/sys/tests/constant.c +++ b/gstreamer-rtp/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-rtp/sys/tests/layout.c b/gstreamer-rtp/sys/tests/layout.c index 8fb92ae64..b6e090a39 100644 --- a/gstreamer-rtp/sys/tests/layout.c +++ b/gstreamer-rtp/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-rtsp-server/src/auto/rtsp_client.rs b/gstreamer-rtsp-server/src/auto/rtsp_client.rs index 22880dd7e..c7ed2f3aa 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_client.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_client.rs @@ -508,51 +508,19 @@ impl> RTSPClientExt for O { } fn is_drop_backlog(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"drop-backlog\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `drop-backlog` getter") - } + glib::ObjectExt::property(self.as_ref(), "drop-backlog") } fn set_drop_backlog(&self, drop_backlog: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"drop-backlog\0".as_ptr() as *const _, - drop_backlog.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "drop-backlog", &drop_backlog) } fn post_session_timeout(&self) -> i32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"post-session-timeout\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `post-session-timeout` getter") - } + glib::ObjectExt::property(self.as_ref(), "post-session-timeout") } fn set_post_session_timeout(&self, post_session_timeout: i32) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"post-session-timeout\0".as_ptr() as *const _, - post_session_timeout.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "post-session-timeout", &post_session_timeout) } fn connect_announce_request( diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media.rs b/gstreamer-rtsp-server/src/auto/rtsp_media.rs index 9ae7053e9..83dbb0e6c 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media.rs @@ -1046,85 +1046,31 @@ impl> RTSPMediaExt for O { } fn get_property_bind_mcast_address(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"bind-mcast-address\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `bind-mcast-address` getter") - } + glib::ObjectExt::property(self.as_ref(), "bind-mcast-address") } fn set_property_bind_mcast_address(&self, bind_mcast_address: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"bind-mcast-address\0".as_ptr() as *const _, - bind_mcast_address.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "bind-mcast-address", &bind_mcast_address) } fn get_property_dscp_qos(&self) -> i32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"dscp-qos\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `dscp-qos` getter") - } + glib::ObjectExt::property(self.as_ref(), "dscp-qos") } fn set_property_dscp_qos(&self, dscp_qos: i32) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"dscp-qos\0".as_ptr() as *const _, - dscp_qos.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "dscp-qos", &dscp_qos) } fn get_property_max_mcast_ttl(&self) -> u32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"max-mcast-ttl\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `max-mcast-ttl` getter") - } + glib::ObjectExt::property(self.as_ref(), "max-mcast-ttl") } fn set_property_max_mcast_ttl(&self, max_mcast_ttl: u32) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"max-mcast-ttl\0".as_ptr() as *const _, - max_mcast_ttl.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "max-mcast-ttl", &max_mcast_ttl) } fn set_time_provider(&self, time_provider: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"time-provider\0".as_ptr() as *const _, - time_provider.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "time-provider", &time_provider) } fn connect_new_state( diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs b/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs index 3e3675b3f..adc4ba2aa 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs @@ -728,89 +728,31 @@ impl> RTSPMediaFactoryExt for O { } fn get_property_bind_mcast_address(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"bind-mcast-address\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `bind-mcast-address` getter") - } + glib::ObjectExt::property(self.as_ref(), "bind-mcast-address") } fn set_property_bind_mcast_address(&self, bind_mcast_address: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"bind-mcast-address\0".as_ptr() as *const _, - bind_mcast_address.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "bind-mcast-address", &bind_mcast_address) } fn get_property_dscp_qos(&self) -> i32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"dscp-qos\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `dscp-qos` getter") - } + glib::ObjectExt::property(self.as_ref(), "dscp-qos") } fn set_property_dscp_qos(&self, dscp_qos: i32) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"dscp-qos\0".as_ptr() as *const _, - dscp_qos.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "dscp-qos", &dscp_qos) } fn get_property_max_mcast_ttl(&self) -> u32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"max-mcast-ttl\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `max-mcast-ttl` getter") - } + glib::ObjectExt::property(self.as_ref(), "max-mcast-ttl") } fn set_property_max_mcast_ttl(&self, max_mcast_ttl: u32) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"max-mcast-ttl\0".as_ptr() as *const _, - max_mcast_ttl.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "max-mcast-ttl", &max_mcast_ttl) } fn is_stop_on_disconnect(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"stop-on-disconnect\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `stop-on-disconnect` getter") - } + glib::ObjectExt::property(self.as_ref(), "stop-on-disconnect") } fn connect_media_configure( 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 c5b715239..9adc92a27 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media_factory_uri.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media_factory_uri.rs @@ -87,27 +87,11 @@ impl> RTSPMediaFactoryURIExt for O { } fn uses_gstpay(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"use-gstpay\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `use-gstpay` getter") - } + glib::ObjectExt::property(self.as_ref(), "use-gstpay") } fn set_use_gstpay(&self, use_gstpay: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"use-gstpay\0".as_ptr() as *const _, - use_gstpay.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "use-gstpay", &use_gstpay) } fn connect_uri_notify(&self, f: F) -> SignalHandlerId { diff --git a/gstreamer-rtsp-server/src/auto/rtsp_server.rs b/gstreamer-rtsp-server/src/auto/rtsp_server.rs index 7a0e72c2a..15cca7e72 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_server.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_server.rs @@ -442,27 +442,11 @@ impl> RTSPServerExt for O { } fn get_property_content_length_limit(&self) -> u32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"content-length-limit\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `content-length-limit` getter") - } + glib::ObjectExt::property(self.as_ref(), "content-length-limit") } fn set_property_content_length_limit(&self, content_length_limit: u32) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"content-length-limit\0".as_ptr() as *const _, - content_length_limit.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "content-length-limit", &content_length_limit) } fn connect_client_connected( diff --git a/gstreamer-rtsp-server/src/auto/rtsp_session.rs b/gstreamer-rtsp-server/src/auto/rtsp_session.rs index 966eff814..d79e8b0de 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_session.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_session.rs @@ -275,51 +275,23 @@ impl> RTSPSessionExt for O { } fn extra_timeout(&self) -> u32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"extra-timeout\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `extra-timeout` getter") - } + glib::ObjectExt::property(self.as_ref(), "extra-timeout") } fn set_extra_timeout(&self, extra_timeout: u32) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"extra-timeout\0".as_ptr() as *const _, - extra_timeout.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "extra-timeout", &extra_timeout) } fn is_timeout_always_visible(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"timeout-always-visible\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `timeout-always-visible` getter") - } + glib::ObjectExt::property(self.as_ref(), "timeout-always-visible") } fn set_timeout_always_visible(&self, timeout_always_visible: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"timeout-always-visible\0".as_ptr() as *const _, - timeout_always_visible.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property( + self.as_ref(), + "timeout-always-visible", + &timeout_always_visible, + ) } fn connect_extra_timeout_notify( diff --git a/gstreamer-rtsp-server/src/auto/versions.txt b/gstreamer-rtsp-server/src/auto/versions.txt index 3e512c8a3..aab55f441 100644 --- a/gstreamer-rtsp-server/src/auto/versions.txt +++ b/gstreamer-rtsp-server/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) diff --git a/gstreamer-rtsp-server/sys/build.rs b/gstreamer-rtsp-server/sys/build.rs index 3bcb7f365..0b5138ef3 100644 --- a/gstreamer-rtsp-server/sys/build.rs +++ b/gstreamer-rtsp-server/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-rtsp-server/sys/src/lib.rs b/gstreamer-rtsp-server/sys/src/lib.rs index 4a82bd24f..2956fb9bb 100644 --- a/gstreamer-rtsp-server/sys/src/lib.rs +++ b/gstreamer-rtsp-server/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-rtsp-server/sys/tests/abi.rs b/gstreamer-rtsp-server/sys/tests/abi.rs index 33c47812e..96aa368ef 100644 --- a/gstreamer-rtsp-server/sys/tests/abi.rs +++ b/gstreamer-rtsp-server/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-rtsp-server/sys/tests/constant.c b/gstreamer-rtsp-server/sys/tests/constant.c index 604a6214b..b20fcf53a 100644 --- a/gstreamer-rtsp-server/sys/tests/constant.c +++ b/gstreamer-rtsp-server/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-rtsp-server/sys/tests/layout.c b/gstreamer-rtsp-server/sys/tests/layout.c index abdd55fd3..c1158f62c 100644 --- a/gstreamer-rtsp-server/sys/tests/layout.c +++ b/gstreamer-rtsp-server/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-rtsp/src/auto/versions.txt b/gstreamer-rtsp/src/auto/versions.txt index 3e512c8a3..aab55f441 100644 --- a/gstreamer-rtsp/src/auto/versions.txt +++ b/gstreamer-rtsp/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) diff --git a/gstreamer-rtsp/sys/build.rs b/gstreamer-rtsp/sys/build.rs index 3bcb7f365..0b5138ef3 100644 --- a/gstreamer-rtsp/sys/build.rs +++ b/gstreamer-rtsp/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-rtsp/sys/src/lib.rs b/gstreamer-rtsp/sys/src/lib.rs index 7ea825e6a..6920bfad5 100644 --- a/gstreamer-rtsp/sys/src/lib.rs +++ b/gstreamer-rtsp/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-rtsp/sys/tests/abi.rs b/gstreamer-rtsp/sys/tests/abi.rs index f615af307..f7ada9f2e 100644 --- a/gstreamer-rtsp/sys/tests/abi.rs +++ b/gstreamer-rtsp/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-rtsp/sys/tests/constant.c b/gstreamer-rtsp/sys/tests/constant.c index b58d66385..22159e869 100644 --- a/gstreamer-rtsp/sys/tests/constant.c +++ b/gstreamer-rtsp/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-rtsp/sys/tests/layout.c b/gstreamer-rtsp/sys/tests/layout.c index 170070fb1..a2cbfb6e7 100644 --- a/gstreamer-rtsp/sys/tests/layout.c +++ b/gstreamer-rtsp/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-sdp/src/auto/versions.txt b/gstreamer-sdp/src/auto/versions.txt index 3e512c8a3..aab55f441 100644 --- a/gstreamer-sdp/src/auto/versions.txt +++ b/gstreamer-sdp/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) diff --git a/gstreamer-sdp/sys/build.rs b/gstreamer-sdp/sys/build.rs index 3bcb7f365..0b5138ef3 100644 --- a/gstreamer-sdp/sys/build.rs +++ b/gstreamer-sdp/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-sdp/sys/src/lib.rs b/gstreamer-sdp/sys/src/lib.rs index 844b790f2..570ab3b25 100644 --- a/gstreamer-sdp/sys/src/lib.rs +++ b/gstreamer-sdp/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-sdp/sys/tests/abi.rs b/gstreamer-sdp/sys/tests/abi.rs index 523dd87a1..c89b1fa57 100644 --- a/gstreamer-sdp/sys/tests/abi.rs +++ b/gstreamer-sdp/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-sdp/sys/tests/constant.c b/gstreamer-sdp/sys/tests/constant.c index e1f96a33b..0dd6f10c1 100644 --- a/gstreamer-sdp/sys/tests/constant.c +++ b/gstreamer-sdp/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-sdp/sys/tests/layout.c b/gstreamer-sdp/sys/tests/layout.c index 7e267abbc..a4ad9150a 100644 --- a/gstreamer-sdp/sys/tests/layout.c +++ b/gstreamer-sdp/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-tag/sys/build.rs b/gstreamer-tag/sys/build.rs index 3bcb7f365..0b5138ef3 100644 --- a/gstreamer-tag/sys/build.rs +++ b/gstreamer-tag/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-tag/sys/src/lib.rs b/gstreamer-tag/sys/src/lib.rs index 369b9824b..a006a89d8 100644 --- a/gstreamer-tag/sys/src/lib.rs +++ b/gstreamer-tag/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-tag/sys/tests/abi.rs b/gstreamer-tag/sys/tests/abi.rs index 989e64a62..922e84592 100644 --- a/gstreamer-tag/sys/tests/abi.rs +++ b/gstreamer-tag/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-tag/sys/tests/constant.c b/gstreamer-tag/sys/tests/constant.c index b2fdc1651..6d5c59e9e 100644 --- a/gstreamer-tag/sys/tests/constant.c +++ b/gstreamer-tag/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-tag/sys/tests/layout.c b/gstreamer-tag/sys/tests/layout.c index 937116097..eda796b8d 100644 --- a/gstreamer-tag/sys/tests/layout.c +++ b/gstreamer-tag/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-video/src/auto/versions.txt b/gstreamer-video/src/auto/versions.txt index 3e512c8a3..aab55f441 100644 --- a/gstreamer-video/src/auto/versions.txt +++ b/gstreamer-video/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) diff --git a/gstreamer-video/src/auto/video_decoder.rs b/gstreamer-video/src/auto/video_decoder.rs index 2ec00a00b..8b2b5d77b 100644 --- a/gstreamer-video/src/auto/video_decoder.rs +++ b/gstreamer-video/src/auto/video_decoder.rs @@ -430,19 +430,7 @@ impl> VideoDecoderExt for O { #[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] fn automatic_request_sync_point_flags(&self) -> VideoDecoderRequestSyncPointFlags { - unsafe { - let mut value = glib::Value::from_type( - ::static_type(), - ); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"automatic-request-sync-point-flags\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `automatic-request-sync-point-flags` getter") - } + glib::ObjectExt::property(self.as_ref(), "automatic-request-sync-point-flags") } #[cfg(any(feature = "v1_20", feature = "dox"))] @@ -451,126 +439,71 @@ impl> VideoDecoderExt for O { &self, automatic_request_sync_point_flags: VideoDecoderRequestSyncPointFlags, ) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"automatic-request-sync-point-flags\0".as_ptr() as *const _, - automatic_request_sync_point_flags - .to_value() - .to_glib_none() - .0, - ); - } + glib::ObjectExt::set_property( + self.as_ref(), + "automatic-request-sync-point-flags", + &automatic_request_sync_point_flags, + ) } #[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] fn is_automatic_request_sync_points(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"automatic-request-sync-points\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `automatic-request-sync-points` getter") - } + glib::ObjectExt::property(self.as_ref(), "automatic-request-sync-points") } #[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] fn set_automatic_request_sync_points(&self, automatic_request_sync_points: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"automatic-request-sync-points\0".as_ptr() as *const _, - automatic_request_sync_points.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property( + self.as_ref(), + "automatic-request-sync-points", + &automatic_request_sync_points, + ) } #[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] fn is_discard_corrupted_frames(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"discard-corrupted-frames\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `discard-corrupted-frames` getter") - } + glib::ObjectExt::property(self.as_ref(), "discard-corrupted-frames") } #[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] fn set_discard_corrupted_frames(&self, discard_corrupted_frames: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"discard-corrupted-frames\0".as_ptr() as *const _, - discard_corrupted_frames.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property( + self.as_ref(), + "discard-corrupted-frames", + &discard_corrupted_frames, + ) } #[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] fn min_force_key_unit_interval(&self) -> u64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"min-force-key-unit-interval\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `min-force-key-unit-interval` getter") - } + glib::ObjectExt::property(self.as_ref(), "min-force-key-unit-interval") } #[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] fn set_min_force_key_unit_interval(&self, min_force_key_unit_interval: u64) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"min-force-key-unit-interval\0".as_ptr() as *const _, - min_force_key_unit_interval.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property( + self.as_ref(), + "min-force-key-unit-interval", + &min_force_key_unit_interval, + ) } #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn is_qos(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"qos\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value.get().expect("Return Value for property `qos` getter") - } + glib::ObjectExt::property(self.as_ref(), "qos") } #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] fn set_qos(&self, qos: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"qos\0".as_ptr() as *const _, - qos.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "qos", &qos) } #[cfg(any(feature = "v1_20", feature = "dox"))] diff --git a/gstreamer-video/src/auto/video_encoder.rs b/gstreamer-video/src/auto/video_encoder.rs index 0de997707..c3f9dc761 100644 --- a/gstreamer-video/src/auto/video_encoder.rs +++ b/gstreamer-video/src/auto/video_encoder.rs @@ -194,25 +194,11 @@ impl> VideoEncoderExt for O { } fn is_qos(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"qos\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value.get().expect("Return Value for property `qos` getter") - } + glib::ObjectExt::property(self.as_ref(), "qos") } fn set_qos(&self, qos: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"qos\0".as_ptr() as *const _, - qos.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "qos", &qos) } #[cfg(any(feature = "v1_18", feature = "dox"))] diff --git a/gstreamer-video/src/auto/video_sink.rs b/gstreamer-video/src/auto/video_sink.rs index cbeaeb77e..c04052f8d 100644 --- a/gstreamer-video/src/auto/video_sink.rs +++ b/gstreamer-video/src/auto/video_sink.rs @@ -45,27 +45,11 @@ pub trait VideoSinkExt: 'static { impl> VideoSinkExt for O { fn shows_preroll_frame(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"show-preroll-frame\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `show-preroll-frame` getter") - } + glib::ObjectExt::property(self.as_ref(), "show-preroll-frame") } fn set_show_preroll_frame(&self, show_preroll_frame: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"show-preroll-frame\0".as_ptr() as *const _, - show_preroll_frame.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "show-preroll-frame", &show_preroll_frame) } fn connect_show_preroll_frame_notify( diff --git a/gstreamer-video/sys/build.rs b/gstreamer-video/sys/build.rs index 3bcb7f365..0b5138ef3 100644 --- a/gstreamer-video/sys/build.rs +++ b/gstreamer-video/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-video/sys/src/lib.rs b/gstreamer-video/sys/src/lib.rs index 6ebfc2084..5a123ade5 100644 --- a/gstreamer-video/sys/src/lib.rs +++ b/gstreamer-video/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-video/sys/tests/abi.rs b/gstreamer-video/sys/tests/abi.rs index 4213cb282..086b7df61 100644 --- a/gstreamer-video/sys/tests/abi.rs +++ b/gstreamer-video/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-video/sys/tests/constant.c b/gstreamer-video/sys/tests/constant.c index b8b22e7dc..786b0a3e1 100644 --- a/gstreamer-video/sys/tests/constant.c +++ b/gstreamer-video/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-video/sys/tests/layout.c b/gstreamer-video/sys/tests/layout.c index 9655096bd..ddcf0dc10 100644 --- a/gstreamer-video/sys/tests/layout.c +++ b/gstreamer-video/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-webrtc/src/auto/versions.txt b/gstreamer-webrtc/src/auto/versions.txt index 3e512c8a3..aab55f441 100644 --- a/gstreamer-webrtc/src/auto/versions.txt +++ b/gstreamer-webrtc/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) diff --git a/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs b/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs index 7db9d45b7..78f5ec972 100644 --- a/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs +++ b/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs @@ -48,172 +48,60 @@ impl WebRTCDataChannel { #[doc(alias = "buffered-amount")] pub fn buffered_amount(&self) -> u64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"buffered-amount\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `buffered-amount` getter") - } + glib::ObjectExt::property(self, "buffered-amount") } #[doc(alias = "buffered-amount-low-threshold")] pub fn buffered_amount_low_threshold(&self) -> u64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"buffered-amount-low-threshold\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `buffered-amount-low-threshold` getter") - } + glib::ObjectExt::property(self, "buffered-amount-low-threshold") } #[doc(alias = "buffered-amount-low-threshold")] pub fn set_buffered_amount_low_threshold(&self, buffered_amount_low_threshold: u64) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"buffered-amount-low-threshold\0".as_ptr() as *const _, - buffered_amount_low_threshold.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property( + self, + "buffered-amount-low-threshold", + &buffered_amount_low_threshold, + ) } pub fn id(&self) -> i32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"id\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value.get().expect("Return Value for property `id` getter") - } + glib::ObjectExt::property(self, "id") } pub fn label(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"label\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `label` getter") - } + glib::ObjectExt::property(self, "label") } #[doc(alias = "max-packet-lifetime")] pub fn max_packet_lifetime(&self) -> i32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"max-packet-lifetime\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `max-packet-lifetime` getter") - } + glib::ObjectExt::property(self, "max-packet-lifetime") } #[doc(alias = "max-retransmits")] pub fn max_retransmits(&self) -> i32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"max-retransmits\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `max-retransmits` getter") - } + glib::ObjectExt::property(self, "max-retransmits") } pub fn is_negotiated(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"negotiated\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `negotiated` getter") - } + glib::ObjectExt::property(self, "negotiated") } pub fn is_ordered(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"ordered\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `ordered` getter") - } + glib::ObjectExt::property(self, "ordered") } pub fn priority(&self) -> WebRTCPriorityType { - unsafe { - let mut value = - glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"priority\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `priority` getter") - } + glib::ObjectExt::property(self, "priority") } pub fn protocol(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"protocol\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `protocol` getter") - } + glib::ObjectExt::property(self, "protocol") } #[doc(alias = "ready-state")] pub fn ready_state(&self) -> WebRTCDataChannelState { - unsafe { - let mut value = - glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"ready-state\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `ready-state` getter") - } + glib::ObjectExt::property(self, "ready-state") } #[doc(alias = "close")] @@ -239,11 +127,7 @@ impl WebRTCDataChannel { } pub fn emit_close(&self) { - let _ = unsafe { - glib::Object::from_glib_borrow(self.as_ptr() as *mut glib::gobject_ffi::GObject) - .emit_by_name("close", &[]) - .unwrap() - }; + let _ = self.emit_by_name("close", &[]); } #[doc(alias = "on-buffered-amount-low")] @@ -449,11 +333,7 @@ impl WebRTCDataChannel { } pub fn emit_send_data(&self, data: Option<&glib::Bytes>) { - let _ = unsafe { - glib::Object::from_glib_borrow(self.as_ptr() as *mut glib::gobject_ffi::GObject) - .emit_by_name("send-data", &[&data]) - .unwrap() - }; + let _ = self.emit_by_name("send-data", &[&data]); } #[doc(alias = "send-string")] @@ -490,11 +370,7 @@ impl WebRTCDataChannel { } pub fn emit_send_string(&self, data: Option<&str>) { - let _ = unsafe { - glib::Object::from_glib_borrow(self.as_ptr() as *mut glib::gobject_ffi::GObject) - .emit_by_name("send-string", &[&data]) - .unwrap() - }; + let _ = self.emit_by_name("send-string", &[&data]); } #[doc(alias = "buffered-amount")] diff --git a/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs b/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs index 7a2742923..3501c4073 100644 --- a/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs +++ b/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs @@ -25,111 +25,37 @@ glib::wrapper! { impl WebRTCDTLSTransport { pub fn certificate(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"certificate\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `certificate` getter") - } + glib::ObjectExt::property(self, "certificate") } pub fn set_certificate(&self, certificate: Option<&str>) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"certificate\0".as_ptr() as *const _, - certificate.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "certificate", &certificate) } pub fn is_client(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"client\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `client` getter") - } + glib::ObjectExt::property(self, "client") } pub fn set_client(&self, client: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"client\0".as_ptr() as *const _, - client.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "client", &client) } #[doc(alias = "remote-certificate")] pub fn remote_certificate(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"remote-certificate\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `remote-certificate` getter") - } + glib::ObjectExt::property(self, "remote-certificate") } #[doc(alias = "session-id")] pub fn session_id(&self) -> u32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"session-id\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `session-id` getter") - } + glib::ObjectExt::property(self, "session-id") } pub fn state(&self) -> WebRTCDTLSTransportState { - unsafe { - let mut value = - glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"state\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `state` getter") - } + glib::ObjectExt::property(self, "state") } pub fn transport(&self) -> Option { - unsafe { - let mut value = - glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"transport\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `transport` getter") - } + glib::ObjectExt::property(self, "transport") } #[doc(alias = "certificate")] diff --git a/gstreamer-webrtc/src/auto/web_rtcice_transport.rs b/gstreamer-webrtc/src/auto/web_rtcice_transport.rs index 616ff995e..eec8bb5a6 100644 --- a/gstreamer-webrtc/src/auto/web_rtcice_transport.rs +++ b/gstreamer-webrtc/src/auto/web_rtcice_transport.rs @@ -25,49 +25,16 @@ glib::wrapper! { impl WebRTCICETransport { pub fn component(&self) -> WebRTCICEComponent { - unsafe { - let mut value = - glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"component\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `component` getter") - } + glib::ObjectExt::property(self, "component") } #[doc(alias = "gathering-state")] pub fn gathering_state(&self) -> WebRTCICEGatheringState { - unsafe { - let mut value = - glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"gathering-state\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `gathering-state` getter") - } + glib::ObjectExt::property(self, "gathering-state") } pub fn state(&self) -> WebRTCICEConnectionState { - unsafe { - let mut value = - glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"state\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `state` getter") - } + glib::ObjectExt::property(self, "state") } #[doc(alias = "on-new-candidate")] diff --git a/gstreamer-webrtc/src/auto/web_rtcrtp_receiver.rs b/gstreamer-webrtc/src/auto/web_rtcrtp_receiver.rs index f9e248341..777af79e3 100644 --- a/gstreamer-webrtc/src/auto/web_rtcrtp_receiver.rs +++ b/gstreamer-webrtc/src/auto/web_rtcrtp_receiver.rs @@ -41,18 +41,7 @@ impl WebRTCRTPReceiver { #[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] pub fn transport(&self) -> Option { - unsafe { - let mut value = - glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"transport\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `transport` getter") - } + glib::ObjectExt::property(self, "transport") } #[cfg(any(feature = "v1_20", feature = "dox"))] diff --git a/gstreamer-webrtc/src/auto/web_rtcrtp_sender.rs b/gstreamer-webrtc/src/auto/web_rtcrtp_sender.rs index 97573e11b..d3726276f 100644 --- a/gstreamer-webrtc/src/auto/web_rtcrtp_sender.rs +++ b/gstreamer-webrtc/src/auto/web_rtcrtp_sender.rs @@ -53,35 +53,13 @@ impl WebRTCRTPSender { #[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] pub fn priority(&self) -> WebRTCPriorityType { - unsafe { - let mut value = - glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"priority\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `priority` getter") - } + glib::ObjectExt::property(self, "priority") } #[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] pub fn transport(&self) -> Option { - unsafe { - let mut value = - glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"transport\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `transport` getter") - } + glib::ObjectExt::property(self, "transport") } #[cfg(any(feature = "v1_20", feature = "dox"))] diff --git a/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs b/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs index e727864ef..97682a5b6 100644 --- a/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs +++ b/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs @@ -44,152 +44,57 @@ impl WebRTCRTPTransceiver { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[doc(alias = "codec-preferences")] pub fn codec_preferences(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"codec-preferences\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `codec-preferences` getter") - } + glib::ObjectExt::property(self, "codec-preferences") } #[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[doc(alias = "codec-preferences")] pub fn set_codec_preferences(&self, codec_preferences: Option<&gst::Caps>) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"codec-preferences\0".as_ptr() as *const _, - codec_preferences.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "codec-preferences", &codec_preferences) } #[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] #[doc(alias = "current-direction")] pub fn current_direction(&self) -> WebRTCRTPTransceiverDirection { - unsafe { - let mut value = glib::Value::from_type( - ::static_type(), - ); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"current-direction\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `current-direction` getter") - } + glib::ObjectExt::property(self, "current-direction") } #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn direction(&self) -> WebRTCRTPTransceiverDirection { - unsafe { - let mut value = glib::Value::from_type( - ::static_type(), - ); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"direction\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `direction` getter") - } + glib::ObjectExt::property(self, "direction") } #[cfg(any(feature = "v1_18", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))] pub fn set_direction(&self, direction: WebRTCRTPTransceiverDirection) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"direction\0".as_ptr() as *const _, - direction.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self, "direction", &direction) } #[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] pub fn kind(&self) -> WebRTCKind { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"kind\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `kind` getter") - } + glib::ObjectExt::property(self, "kind") } #[cfg(any(feature = "v1_20", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))] pub fn mid(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"mid\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value.get().expect("Return Value for property `mid` getter") - } + glib::ObjectExt::property(self, "mid") } pub fn mlineindex(&self) -> u32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"mlineindex\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `mlineindex` getter") - } + glib::ObjectExt::property(self, "mlineindex") } pub fn receiver(&self) -> Option { - unsafe { - let mut value = - glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"receiver\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `receiver` getter") - } + glib::ObjectExt::property(self, "receiver") } pub fn sender(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"sender\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `sender` getter") - } + glib::ObjectExt::property(self, "sender") } #[cfg(any(feature = "v1_20", feature = "dox"))] diff --git a/gstreamer-webrtc/src/auto/web_rtcsctp_transport.rs b/gstreamer-webrtc/src/auto/web_rtcsctp_transport.rs index 9c5de11db..207d941ec 100644 --- a/gstreamer-webrtc/src/auto/web_rtcsctp_transport.rs +++ b/gstreamer-webrtc/src/auto/web_rtcsctp_transport.rs @@ -25,62 +25,20 @@ glib::wrapper! { impl WebRTCSCTPTransport { #[doc(alias = "max-channels")] pub fn max_channels(&self) -> u32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"max-channels\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `max-channels` getter") - } + glib::ObjectExt::property(self, "max-channels") } #[doc(alias = "max-message-size")] pub fn max_message_size(&self) -> u64 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"max-message-size\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `max-message-size` getter") - } + glib::ObjectExt::property(self, "max-message-size") } pub fn state(&self) -> WebRTCSCTPTransportState { - unsafe { - let mut value = - glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"state\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `state` getter") - } + glib::ObjectExt::property(self, "state") } pub fn transport(&self) -> Option { - unsafe { - let mut value = - glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"transport\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `transport` getter") - } + glib::ObjectExt::property(self, "transport") } #[doc(alias = "max-channels")] diff --git a/gstreamer-webrtc/sys/build.rs b/gstreamer-webrtc/sys/build.rs index 3bcb7f365..0b5138ef3 100644 --- a/gstreamer-webrtc/sys/build.rs +++ b/gstreamer-webrtc/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-webrtc/sys/src/lib.rs b/gstreamer-webrtc/sys/src/lib.rs index 545e4fea0..756291088 100644 --- a/gstreamer-webrtc/sys/src/lib.rs +++ b/gstreamer-webrtc/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-webrtc/sys/tests/abi.rs b/gstreamer-webrtc/sys/tests/abi.rs index 72b7b316b..9076203c7 100644 --- a/gstreamer-webrtc/sys/tests/abi.rs +++ b/gstreamer-webrtc/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-webrtc/sys/tests/constant.c b/gstreamer-webrtc/sys/tests/constant.c index ae7656542..10a80c434 100644 --- a/gstreamer-webrtc/sys/tests/constant.c +++ b/gstreamer-webrtc/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer-webrtc/sys/tests/layout.c b/gstreamer-webrtc/sys/tests/layout.c index ff4305c3f..a3a53d06d 100644 --- a/gstreamer-webrtc/sys/tests/layout.c +++ b/gstreamer-webrtc/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer/src/auto/bin.rs b/gstreamer/src/auto/bin.rs index ad85f5823..f236cda83 100644 --- a/gstreamer/src/auto/bin.rs +++ b/gstreamer/src/auto/bin.rs @@ -235,51 +235,19 @@ impl> GstBinExt for O { } fn is_async_handling(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"async-handling\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `async-handling` getter") - } + glib::ObjectExt::property(self.as_ref(), "async-handling") } fn set_async_handling(&self, async_handling: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"async-handling\0".as_ptr() as *const _, - async_handling.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "async-handling", &async_handling) } fn is_message_forward(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"message-forward\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `message-forward` getter") - } + glib::ObjectExt::property(self.as_ref(), "message-forward") } fn set_message_forward(&self, message_forward: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"message-forward\0".as_ptr() as *const _, - message_forward.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "message-forward", &message_forward) } #[cfg(any(feature = "v1_10", feature = "dox"))] diff --git a/gstreamer/src/auto/clock.rs b/gstreamer/src/auto/clock.rs index 1505c320b..6d98a2eb6 100644 --- a/gstreamer/src/auto/clock.rs +++ b/gstreamer/src/auto/clock.rs @@ -391,51 +391,19 @@ impl> ClockExt for O { } fn window_size(&self) -> i32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"window-size\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `window-size` getter") - } + glib::ObjectExt::property(self.as_ref(), "window-size") } fn set_window_size(&self, window_size: i32) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"window-size\0".as_ptr() as *const _, - window_size.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "window-size", &window_size) } fn window_threshold(&self) -> i32 { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"window-threshold\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `window-threshold` getter") - } + glib::ObjectExt::property(self.as_ref(), "window-threshold") } fn set_window_threshold(&self, window_threshold: i32) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"window-threshold\0".as_ptr() as *const _, - window_threshold.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "window-threshold", &window_threshold) } fn connect_synced(&self, f: F) -> SignalHandlerId { diff --git a/gstreamer/src/auto/control_binding.rs b/gstreamer/src/auto/control_binding.rs index 4ccc54c8f..1e2341d55 100644 --- a/gstreamer/src/auto/control_binding.rs +++ b/gstreamer/src/auto/control_binding.rs @@ -99,16 +99,6 @@ impl> ControlBindingExt for O { } fn object(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"object\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `object` getter") - } + glib::ObjectExt::property(self.as_ref(), "object") } } diff --git a/gstreamer/src/auto/device_monitor.rs b/gstreamer/src/auto/device_monitor.rs index 979ca9810..62a2bf6c5 100644 --- a/gstreamer/src/auto/device_monitor.rs +++ b/gstreamer/src/auto/device_monitor.rs @@ -129,27 +129,11 @@ impl> DeviceMonitorExt for O { } fn shows_all(&self) -> bool { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"show-all\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `show-all` getter") - } + glib::ObjectExt::property(self.as_ref(), "show-all") } fn set_show_all(&self, show_all: bool) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"show-all\0".as_ptr() as *const _, - show_all.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "show-all", &show_all) } fn connect_show_all_notify( diff --git a/gstreamer/src/auto/pad.rs b/gstreamer/src/auto/pad.rs index b819317e0..825ea4879 100644 --- a/gstreamer/src/auto/pad.rs +++ b/gstreamer/src/auto/pad.rs @@ -605,17 +605,7 @@ impl> PadExt for O { } fn caps(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"caps\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `caps` getter") - } + glib::ObjectExt::property(self.as_ref(), "caps") } fn connect_linked(&self, f: F) -> SignalHandlerId { diff --git a/gstreamer/src/auto/pad_template.rs b/gstreamer/src/auto/pad_template.rs index fe9c05315..dcde7c78f 100644 --- a/gstreamer/src/auto/pad_template.rs +++ b/gstreamer/src/auto/pad_template.rs @@ -108,63 +108,22 @@ impl PadTemplate { } pub fn direction(&self) -> PadDirection { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"direction\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `direction` getter") - } + glib::ObjectExt::property(self, "direction") } #[cfg(any(feature = "v1_14", feature = "dox"))] #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))] pub fn gtype(&self) -> glib::types::Type { - unsafe { - let mut value = - glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"gtype\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `gtype` getter") - } + glib::ObjectExt::property(self, "gtype") } #[doc(alias = "name-template")] pub fn name_template(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"name-template\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `name-template` getter") - } + glib::ObjectExt::property(self, "name-template") } pub fn presence(&self) -> PadPresence { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.as_ptr() as *mut glib::gobject_ffi::GObject, - b"presence\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `presence` getter") - } + glib::ObjectExt::property(self, "presence") } #[doc(alias = "pad-created")] diff --git a/gstreamer/src/auto/system_clock.rs b/gstreamer/src/auto/system_clock.rs index 4207dc550..c931e815c 100644 --- a/gstreamer/src/auto/system_clock.rs +++ b/gstreamer/src/auto/system_clock.rs @@ -64,27 +64,11 @@ pub trait SystemClockExt: 'static { impl> SystemClockExt for O { fn clock_type(&self) -> ClockType { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"clock-type\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `clock-type` getter") - } + glib::ObjectExt::property(self.as_ref(), "clock-type") } fn set_clock_type(&self, clock_type: ClockType) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"clock-type\0".as_ptr() as *const _, - clock_type.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "clock-type", &clock_type) } fn connect_clock_type_notify( diff --git a/gstreamer/src/auto/tracer.rs b/gstreamer/src/auto/tracer.rs index f89ac15a1..24bc8d8df 100644 --- a/gstreamer/src/auto/tracer.rs +++ b/gstreamer/src/auto/tracer.rs @@ -41,27 +41,11 @@ pub trait TracerExt: 'static { impl> TracerExt for O { fn params(&self) -> Option { - unsafe { - let mut value = glib::Value::from_type(::static_type()); - glib::gobject_ffi::g_object_get_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"params\0".as_ptr() as *const _, - value.to_glib_none_mut().0, - ); - value - .get() - .expect("Return Value for property `params` getter") - } + glib::ObjectExt::property(self.as_ref(), "params") } fn set_params(&self, params: Option<&str>) { - unsafe { - glib::gobject_ffi::g_object_set_property( - self.to_glib_none().0 as *mut glib::gobject_ffi::GObject, - b"params\0".as_ptr() as *const _, - params.to_value().to_glib_none().0, - ); - } + glib::ObjectExt::set_property(self.as_ref(), "params", ¶ms) } fn connect_params_notify(&self, f: F) -> SignalHandlerId { diff --git a/gstreamer/src/auto/versions.txt b/gstreamer/src/auto/versions.txt index 3e512c8a3..aab55f441 100644 --- a/gstreamer/src/auto/versions.txt +++ b/gstreamer/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) diff --git a/gstreamer/sys/build.rs b/gstreamer/sys/build.rs index 3bcb7f365..0b5138ef3 100644 --- a/gstreamer/sys/build.rs +++ b/gstreamer/sys/build.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer/sys/src/lib.rs b/gstreamer/sys/src/lib.rs index d87fbba9d..096d1bf22 100644 --- a/gstreamer/sys/src/lib.rs +++ b/gstreamer/sys/src/lib.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer/sys/tests/abi.rs b/gstreamer/sys/tests/abi.rs index 2a4f7cd87..06bee5791 100644 --- a/gstreamer/sys/tests/abi.rs +++ b/gstreamer/sys/tests/abi.rs @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer/sys/tests/constant.c b/gstreamer/sys/tests/constant.c index c8abe49d5..c28d4ebbb 100644 --- a/gstreamer/sys/tests/constant.c +++ b/gstreamer/sys/tests/constant.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT diff --git a/gstreamer/sys/tests/layout.c b/gstreamer/sys/tests/layout.c index 3837a2079..a8cf0de70 100644 --- a/gstreamer/sys/tests/layout.c +++ b/gstreamer/sys/tests/layout.c @@ -1,4 +1,4 @@ -// Generated by gir (https://github.com/gtk-rs/gir @ e0b1709803a7) +// Generated by gir (https://github.com/gtk-rs/gir @ dd6854cae9fd) // from gir-files (https://github.com/gtk-rs/gir-files @ b827978e7d18) // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ f8c393377c4e) // DO NOT EDIT