From c2cda2c067403a657cdcb490dbae130a7a1946dd Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Thu, 6 Jul 2023 15:05:38 +0200 Subject: [PATCH] Regenerate with latest gir Part-of: --- .../src/auto/drm_dumb_allocator.rs | 4 +- gstreamer-allocators/src/auto/flags.rs | 4 +- gstreamer-allocators/src/auto/versions.txt | 2 +- .../sys/src/auto/versions.txt | 2 +- gstreamer-app/src/auto/app_sink.rs | 4 +- gstreamer-app/src/auto/app_src.rs | 28 +-- gstreamer-app/src/auto/enums.rs | 10 +- gstreamer-app/src/auto/versions.txt | 2 +- gstreamer-app/sys/src/auto/versions.txt | 2 +- gstreamer-audio/src/auto/audio_aggregator.rs | 12 +- .../src/auto/audio_aggregator_convert_pad.rs | 4 +- .../src/auto/audio_aggregator_pad.rs | 4 +- gstreamer-audio/src/auto/audio_base_sink.rs | 12 +- gstreamer-audio/src/auto/audio_base_src.rs | 12 +- gstreamer-audio/src/auto/enums.rs | 26 +-- gstreamer-audio/src/auto/flags.rs | 18 +- gstreamer-audio/src/auto/versions.txt | 2 +- gstreamer-audio/sys/src/auto/versions.txt | 2 +- gstreamer-base/src/auto/aggregator.rs | 12 +- gstreamer-base/src/auto/aggregator_pad.rs | 4 +- gstreamer-base/src/auto/base_parse.rs | 4 +- gstreamer-base/src/auto/base_sink.rs | 12 +- gstreamer-base/src/auto/base_src.rs | 8 +- gstreamer-base/src/auto/base_transform.rs | 4 +- gstreamer-base/src/auto/enums.rs | 6 +- gstreamer-base/src/auto/flags.rs | 4 +- gstreamer-base/src/auto/versions.txt | 2 +- gstreamer-base/sys/src/auto/versions.txt | 2 +- gstreamer-check/src/auto/test_clock.rs | 6 +- gstreamer-check/src/auto/versions.txt | 2 +- gstreamer-check/sys/src/auto/versions.txt | 2 +- .../src/auto/argb_control_binding.rs | 16 +- .../src/auto/direct_control_binding.rs | 6 +- gstreamer-controller/src/auto/enums.rs | 10 +- .../src/auto/interpolation_control_source.rs | 4 +- .../src/auto/lfo_control_source.rs | 20 +- .../src/auto/trigger_control_source.rs | 4 +- gstreamer-controller/src/auto/versions.txt | 2 +- .../sys/src/auto/versions.txt | 2 +- .../src/auto/audio_uri_source.rs | 2 +- .../src/auto/container.rs | 2 +- .../src/auto/discoverer_manager.rs | 4 +- gstreamer-editing-services/src/auto/effect.rs | 2 +- .../src/auto/effect_clip.rs | 4 +- gstreamer-editing-services/src/auto/enums.rs | 26 +-- gstreamer-editing-services/src/auto/flags.rs | 23 ++- .../src/auto/image_source.rs | 2 +- gstreamer-editing-services/src/auto/marker.rs | 2 +- .../src/auto/marker_list.rs | 4 +- .../src/auto/multi_file_source.rs | 2 +- .../src/auto/pipeline.rs | 18 +- .../src/auto/test_clip.rs | 4 +- .../src/auto/text_overlay_clip.rs | 4 +- .../src/auto/timeline_element.rs | 8 +- .../src/auto/title_clip.rs | 4 +- gstreamer-editing-services/src/auto/track.rs | 10 +- .../src/auto/transition_clip.rs | 4 +- .../src/auto/uri_clip_asset.rs | 4 +- .../src/auto/versions.txt | 2 +- .../src/auto/video_transition.rs | 4 +- .../src/auto/video_uri_source.rs | 2 +- .../sys/src/auto/versions.txt | 2 +- gstreamer-gl/egl/src/auto/versions.txt | 2 +- gstreamer-gl/egl/sys/src/auto/versions.txt | 2 +- gstreamer-gl/src/auto/enums.rs | 57 +++--- gstreamer-gl/src/auto/flags.rs | 28 +-- gstreamer-gl/src/auto/gl_base_filter.rs | 2 +- gstreamer-gl/src/auto/gl_base_src.rs | 4 +- .../src/auto/gl_overlay_compositor.rs | 4 +- gstreamer-gl/src/auto/gl_view_convert.rs | 20 +- gstreamer-gl/src/auto/versions.txt | 2 +- gstreamer-gl/sys/src/auto/versions.txt | 2 +- gstreamer-gl/wayland/src/auto/versions.txt | 2 +- .../wayland/sys/src/auto/versions.txt | 2 +- gstreamer-gl/x11/src/auto/versions.txt | 2 +- gstreamer-gl/x11/sys/src/auto/versions.txt | 2 +- gstreamer-mpegts/src/auto/versions.txt | 2 +- gstreamer-mpegts/sys/src/auto/versions.txt | 2 +- gstreamer-net/src/auto/net_client_clock.rs | 28 +-- gstreamer-net/src/auto/net_time_provider.rs | 14 +- gstreamer-net/src/auto/ptp_clock.rs | 8 +- gstreamer-net/src/auto/versions.txt | 2 +- gstreamer-net/sys/src/auto/versions.txt | 2 +- .../src/auto/audio_visualizer.rs | 8 +- gstreamer-pbutils/src/auto/discoverer.rs | 4 +- gstreamer-pbutils/src/auto/enums.rs | 10 +- gstreamer-pbutils/src/auto/flags.rs | 13 +- gstreamer-pbutils/src/auto/versions.txt | 2 +- gstreamer-pbutils/sys/src/auto/versions.txt | 2 +- gstreamer-play/src/auto/enums.rs | 25 +-- gstreamer-play/src/auto/play.rs | 16 +- .../auto/play_video_overlay_video_renderer.rs | 4 +- gstreamer-play/src/auto/versions.txt | 2 +- gstreamer-play/sys/src/auto/versions.txt | 2 +- gstreamer-player/src/auto/enums.rs | 21 +- gstreamer-player/src/auto/player.rs | 14 +- .../player_gmain_context_signal_dispatcher.rs | 2 +- .../player_video_overlay_video_renderer.rs | 4 +- gstreamer-player/src/auto/versions.txt | 2 +- gstreamer-player/sys/src/auto/versions.txt | 2 +- gstreamer-rtp/src/auto/enums.rs | 26 +-- gstreamer-rtp/src/auto/flags.rs | 23 ++- gstreamer-rtp/src/auto/rtp_base_depayload.rs | 14 +- gstreamer-rtp/src/auto/rtp_base_payload.rs | 58 +++--- gstreamer-rtp/src/auto/versions.txt | 2 +- gstreamer-rtp/sys/src/auto/versions.txt | 2 +- gstreamer-rtsp-server/src/auto/enums.rs | 10 +- gstreamer-rtsp-server/src/auto/flags.rs | 9 +- gstreamer-rtsp-server/src/auto/rtsp_client.rs | 8 +- gstreamer-rtsp-server/src/auto/rtsp_media.rs | 14 +- .../src/auto/rtsp_media_factory.rs | 14 +- .../src/auto/rtsp_media_factory_uri.rs | 4 +- gstreamer-rtsp-server/src/auto/rtsp_server.rs | 4 +- .../src/auto/rtsp_session.rs | 8 +- gstreamer-rtsp-server/src/auto/versions.txt | 2 +- .../sys/src/auto/versions.txt | 2 +- gstreamer-rtsp/src/auto/enums.rs | 38 ++-- gstreamer-rtsp/src/auto/flags.rs | 28 +-- gstreamer-rtsp/src/auto/versions.txt | 2 +- gstreamer-rtsp/sys/src/auto/versions.txt | 2 +- gstreamer-sdp/src/auto/versions.txt | 2 +- gstreamer-sdp/sys/src/auto/versions.txt | 2 +- gstreamer-tag/sys/src/auto/versions.txt | 2 +- gstreamer-validate/src/auto/bin_monitor.rs | 2 +- gstreamer-validate/src/auto/enums.rs | 10 +- gstreamer-validate/src/auto/flags.rs | 13 +- gstreamer-validate/src/auto/monitor.rs | 10 +- gstreamer-validate/src/auto/reporter.rs | 2 +- gstreamer-validate/src/auto/scenario.rs | 6 +- gstreamer-validate/src/auto/versions.txt | 2 +- gstreamer-validate/sys/src/auto/versions.txt | 2 +- gstreamer-video/src/auto/enums.rs | 102 +++++----- gstreamer-video/src/auto/flags.rs | 63 +++--- gstreamer-video/src/auto/versions.txt | 2 +- .../src/auto/video_aggregator_pad.rs | 12 +- gstreamer-video/src/auto/video_decoder.rs | 20 +- gstreamer-video/src/auto/video_encoder.rs | 4 +- gstreamer-video/src/auto/video_sink.rs | 4 +- gstreamer-video/sys/src/auto/versions.txt | 2 +- gstreamer-webrtc/src/auto/enums.rs | 85 ++++---- gstreamer-webrtc/src/auto/versions.txt | 2 +- .../src/auto/web_rtc_data_channel.rs | 24 +-- .../src/auto/web_rtcdtls_transport.rs | 16 +- gstreamer-webrtc/src/auto/web_rtcice.rs | 8 +- .../src/auto/web_rtcice_stream.rs | 2 +- .../src/auto/web_rtcice_transport.rs | 6 +- .../src/auto/web_rtcrtp_receiver.rs | 2 +- .../src/auto/web_rtcrtp_sender.rs | 4 +- .../src/auto/web_rtcrtp_transceiver.rs | 20 +- .../src/auto/web_rtcsctp_transport.rs | 8 +- gstreamer-webrtc/sys/src/auto/versions.txt | 2 +- gstreamer/src/auto/bin.rs | 8 +- gstreamer/src/auto/clock.rs | 8 +- gstreamer/src/auto/control_binding.rs | 2 +- gstreamer/src/auto/device_monitor.rs | 4 +- gstreamer/src/auto/enums.rs | 189 +++++++++--------- gstreamer/src/auto/flags.rs | 143 +++++++------ gstreamer/src/auto/pad.rs | 2 +- gstreamer/src/auto/system_clock.rs | 4 +- gstreamer/src/auto/tracer.rs | 4 +- gstreamer/src/auto/versions.txt | 2 +- gstreamer/sys/src/auto/versions.txt | 2 +- 162 files changed, 932 insertions(+), 890 deletions(-) diff --git a/gstreamer-allocators/src/auto/drm_dumb_allocator.rs b/gstreamer-allocators/src/auto/drm_dumb_allocator.rs index 737be9101..d20ad3c55 100644 --- a/gstreamer-allocators/src/auto/drm_dumb_allocator.rs +++ b/gstreamer-allocators/src/auto/drm_dumb_allocator.rs @@ -45,14 +45,14 @@ impl DRMDumbAllocator { #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] #[doc(alias = "drm-device-path")] pub fn drm_device_path(&self) -> Option { - glib::ObjectExt::property(self, "drm-device-path") + ObjectExt::property(self, "drm-device-path") } #[cfg(feature = "v1_24")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_24")))] #[doc(alias = "drm-fd")] pub fn drm_fd(&self) -> i32 { - glib::ObjectExt::property(self, "drm-fd") + ObjectExt::property(self, "drm-fd") } } diff --git a/gstreamer-allocators/src/auto/flags.rs b/gstreamer-allocators/src/auto/flags.rs index f56e77349..3fc48850d 100644 --- a/gstreamer-allocators/src/auto/flags.rs +++ b/gstreamer-allocators/src/auto/flags.rs @@ -3,10 +3,10 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -use bitflags::bitflags; -use glib::translate::*; +use glib::{bitflags::bitflags, translate::*}; bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstFdMemoryFlags")] pub struct FdMemoryFlags: u32 { #[doc(alias = "GST_FD_MEMORY_FLAG_NONE")] diff --git a/gstreamer-allocators/src/auto/versions.txt b/gstreamer-allocators/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-allocators/src/auto/versions.txt +++ b/gstreamer-allocators/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-allocators/sys/src/auto/versions.txt b/gstreamer-allocators/sys/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-allocators/sys/src/auto/versions.txt +++ b/gstreamer-allocators/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-app/src/auto/app_sink.rs b/gstreamer-app/src/auto/app_sink.rs index 2b67a4bc7..cf1eb4c2f 100644 --- a/gstreamer-app/src/auto/app_sink.rs +++ b/gstreamer-app/src/auto/app_sink.rs @@ -171,12 +171,12 @@ impl AppSink { #[doc(alias = "buffer-list")] pub fn is_buffer_list(&self) -> bool { - glib::ObjectExt::property(self, "buffer-list") + ObjectExt::property(self, "buffer-list") } #[doc(alias = "buffer-list")] pub fn set_buffer_list(&self, buffer_list: bool) { - glib::ObjectExt::set_property(self, "buffer-list", buffer_list) + 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 33e4dd54d..c3f30264c 100644 --- a/gstreamer-app/src/auto/app_src.rs +++ b/gstreamer-app/src/auto/app_src.rs @@ -210,73 +210,73 @@ impl AppSrc { } pub fn is_block(&self) -> bool { - glib::ObjectExt::property(self, "block") + ObjectExt::property(self, "block") } pub fn set_block(&self, block: bool) { - glib::ObjectExt::set_property(self, "block", block) + ObjectExt::set_property(self, "block", block) } pub fn format(&self) -> gst::Format { - glib::ObjectExt::property(self, "format") + ObjectExt::property(self, "format") } pub fn set_format(&self, format: gst::Format) { - glib::ObjectExt::set_property(self, "format", format) + ObjectExt::set_property(self, "format", format) } #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "handle-segment-change")] pub fn is_handle_segment_change(&self) -> bool { - glib::ObjectExt::property(self, "handle-segment-change") + ObjectExt::property(self, "handle-segment-change") } #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "handle-segment-change")] pub fn set_handle_segment_change(&self, handle_segment_change: bool) { - glib::ObjectExt::set_property(self, "handle-segment-change", handle_segment_change) + ObjectExt::set_property(self, "handle-segment-change", handle_segment_change) } #[doc(alias = "is-live")] pub fn is_live(&self) -> bool { - glib::ObjectExt::property(self, "is-live") + ObjectExt::property(self, "is-live") } #[doc(alias = "is-live")] pub fn set_is_live(&self, is_live: bool) { - glib::ObjectExt::set_property(self, "is-live", is_live) + ObjectExt::set_property(self, "is-live", is_live) } #[doc(alias = "max-latency")] pub fn max_latency(&self) -> i64 { - glib::ObjectExt::property(self, "max-latency") + ObjectExt::property(self, "max-latency") } #[doc(alias = "max-latency")] pub fn set_max_latency(&self, max_latency: i64) { - glib::ObjectExt::set_property(self, "max-latency", max_latency) + ObjectExt::set_property(self, "max-latency", max_latency) } #[doc(alias = "min-latency")] pub fn min_latency(&self) -> i64 { - glib::ObjectExt::property(self, "min-latency") + ObjectExt::property(self, "min-latency") } #[doc(alias = "min-latency")] pub fn set_min_latency(&self, min_latency: i64) { - glib::ObjectExt::set_property(self, "min-latency", min_latency) + ObjectExt::set_property(self, "min-latency", min_latency) } #[doc(alias = "min-percent")] pub fn min_percent(&self) -> u32 { - glib::ObjectExt::property(self, "min-percent") + ObjectExt::property(self, "min-percent") } #[doc(alias = "min-percent")] pub fn set_min_percent(&self, min_percent: u32) { - glib::ObjectExt::set_property(self, "min-percent", min_percent) + ObjectExt::set_property(self, "min-percent", min_percent) } #[doc(alias = "block")] diff --git a/gstreamer-app/src/auto/enums.rs b/gstreamer-app/src/auto/enums.rs index 6af78c8fe..ff60c9de4 100644 --- a/gstreamer-app/src/auto/enums.rs +++ b/gstreamer-app/src/auto/enums.rs @@ -3,7 +3,7 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type}; +use glib::{prelude::*, translate::*}; #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] @@ -59,7 +59,7 @@ impl FromGlib for AppLeakyType { #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for AppLeakyType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_app_leaky_type_get_type()) } } } @@ -84,7 +84,7 @@ impl glib::value::ValueType for AppLeakyType { #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] -unsafe impl<'a> FromValue<'a> for AppLeakyType { +unsafe impl<'a> glib::value::FromValue<'a> for AppLeakyType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -168,7 +168,7 @@ impl FromGlib for AppStreamType { impl StaticType for AppStreamType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_app_stream_type_get_type()) } } } @@ -187,7 +187,7 @@ impl glib::value::ValueType for AppStreamType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for AppStreamType { +unsafe impl<'a> glib::value::FromValue<'a> for AppStreamType { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer-app/src/auto/versions.txt b/gstreamer-app/src/auto/versions.txt index 6c0d75e68..7942439dc 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 @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-app/sys/src/auto/versions.txt b/gstreamer-app/sys/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-app/sys/src/auto/versions.txt +++ b/gstreamer-app/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-audio/src/auto/audio_aggregator.rs b/gstreamer-audio/src/auto/audio_aggregator.rs index 62e811011..0fb163dcd 100644 --- a/gstreamer-audio/src/auto/audio_aggregator.rs +++ b/gstreamer-audio/src/auto/audio_aggregator.rs @@ -34,32 +34,32 @@ mod sealed { pub trait AudioAggregatorExt: IsA + sealed::Sealed + 'static { #[doc(alias = "alignment-threshold")] fn alignment_threshold(&self) -> u64 { - glib::ObjectExt::property(self.as_ref(), "alignment-threshold") + ObjectExt::property(self.as_ref(), "alignment-threshold") } #[doc(alias = "alignment-threshold")] fn set_alignment_threshold(&self, alignment_threshold: u64) { - glib::ObjectExt::set_property(self.as_ref(), "alignment-threshold", alignment_threshold) + ObjectExt::set_property(self.as_ref(), "alignment-threshold", alignment_threshold) } #[doc(alias = "discont-wait")] fn discont_wait(&self) -> u64 { - glib::ObjectExt::property(self.as_ref(), "discont-wait") + ObjectExt::property(self.as_ref(), "discont-wait") } #[doc(alias = "discont-wait")] fn set_discont_wait(&self, discont_wait: u64) { - glib::ObjectExt::set_property(self.as_ref(), "discont-wait", discont_wait) + ObjectExt::set_property(self.as_ref(), "discont-wait", discont_wait) } #[doc(alias = "output-buffer-duration")] fn output_buffer_duration(&self) -> u64 { - glib::ObjectExt::property(self.as_ref(), "output-buffer-duration") + ObjectExt::property(self.as_ref(), "output-buffer-duration") } #[doc(alias = "output-buffer-duration")] fn set_output_buffer_duration(&self, output_buffer_duration: u64) { - glib::ObjectExt::set_property( + ObjectExt::set_property( self.as_ref(), "output-buffer-duration", output_buffer_duration, diff --git a/gstreamer-audio/src/auto/audio_aggregator_convert_pad.rs b/gstreamer-audio/src/auto/audio_aggregator_convert_pad.rs index b69de5a23..6a3423db3 100644 --- a/gstreamer-audio/src/auto/audio_aggregator_convert_pad.rs +++ b/gstreamer-audio/src/auto/audio_aggregator_convert_pad.rs @@ -37,12 +37,12 @@ pub trait AudioAggregatorConvertPadExt: { //#[doc(alias = "converter-config")] //fn converter_config(&self) -> /*Ignored*/Option { - // glib::ObjectExt::property(self.as_ref(), "converter-config") + // ObjectExt::property(self.as_ref(), "converter-config") //} //#[doc(alias = "converter-config")] //fn set_converter_config(&self, converter_config: /*Ignored*/Option<&gst::Structure>) { - // glib::ObjectExt::set_property(self.as_ref(),"converter-config", converter_config) + // ObjectExt::set_property(self.as_ref(),"converter-config", converter_config) //} #[doc(alias = "converter-config")] diff --git a/gstreamer-audio/src/auto/audio_aggregator_pad.rs b/gstreamer-audio/src/auto/audio_aggregator_pad.rs index d72fe70f9..e98f1339e 100644 --- a/gstreamer-audio/src/auto/audio_aggregator_pad.rs +++ b/gstreamer-audio/src/auto/audio_aggregator_pad.rs @@ -40,14 +40,14 @@ pub trait AudioAggregatorPadExt: IsA + sealed::Sealed + 'sta #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "qos-messages")] fn is_qos_messages(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "qos-messages") + ObjectExt::property(self.as_ref(), "qos-messages") } #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "qos-messages")] fn set_qos_messages(&self, qos_messages: bool) { - glib::ObjectExt::set_property(self.as_ref(), "qos-messages", qos_messages) + ObjectExt::set_property(self.as_ref(), "qos-messages", qos_messages) } #[cfg(feature = "v1_20")] diff --git a/gstreamer-audio/src/auto/audio_base_sink.rs b/gstreamer-audio/src/auto/audio_base_sink.rs index 02248b452..9927622c6 100644 --- a/gstreamer-audio/src/auto/audio_base_sink.rs +++ b/gstreamer-audio/src/auto/audio_base_sink.rs @@ -140,32 +140,32 @@ pub trait AudioBaseSinkExt: IsA + sealed::Sealed + 'static { #[doc(alias = "buffer-time")] fn buffer_time(&self) -> i64 { - glib::ObjectExt::property(self.as_ref(), "buffer-time") + ObjectExt::property(self.as_ref(), "buffer-time") } #[doc(alias = "buffer-time")] fn set_buffer_time(&self, buffer_time: i64) { - glib::ObjectExt::set_property(self.as_ref(), "buffer-time", buffer_time) + ObjectExt::set_property(self.as_ref(), "buffer-time", buffer_time) } #[doc(alias = "can-activate-pull")] fn can_activate_pull(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "can-activate-pull") + ObjectExt::property(self.as_ref(), "can-activate-pull") } #[doc(alias = "can-activate-pull")] fn set_can_activate_pull(&self, can_activate_pull: bool) { - glib::ObjectExt::set_property(self.as_ref(), "can-activate-pull", can_activate_pull) + ObjectExt::set_property(self.as_ref(), "can-activate-pull", can_activate_pull) } #[doc(alias = "latency-time")] fn latency_time(&self) -> i64 { - glib::ObjectExt::property(self.as_ref(), "latency-time") + ObjectExt::property(self.as_ref(), "latency-time") } #[doc(alias = "latency-time")] fn set_latency_time(&self, latency_time: i64) { - glib::ObjectExt::set_property(self.as_ref(), "latency-time", latency_time) + ObjectExt::set_property(self.as_ref(), "latency-time", latency_time) } #[doc(alias = "alignment-threshold")] diff --git a/gstreamer-audio/src/auto/audio_base_src.rs b/gstreamer-audio/src/auto/audio_base_src.rs index fba60797c..a25a0c787 100644 --- a/gstreamer-audio/src/auto/audio_base_src.rs +++ b/gstreamer-audio/src/auto/audio_base_src.rs @@ -70,32 +70,32 @@ pub trait AudioBaseSrcExt: IsA + sealed::Sealed + 'static { #[doc(alias = "actual-buffer-time")] fn actual_buffer_time(&self) -> i64 { - glib::ObjectExt::property(self.as_ref(), "actual-buffer-time") + ObjectExt::property(self.as_ref(), "actual-buffer-time") } #[doc(alias = "actual-latency-time")] fn actual_latency_time(&self) -> i64 { - glib::ObjectExt::property(self.as_ref(), "actual-latency-time") + ObjectExt::property(self.as_ref(), "actual-latency-time") } #[doc(alias = "buffer-time")] fn buffer_time(&self) -> i64 { - glib::ObjectExt::property(self.as_ref(), "buffer-time") + ObjectExt::property(self.as_ref(), "buffer-time") } #[doc(alias = "buffer-time")] fn set_buffer_time(&self, buffer_time: i64) { - glib::ObjectExt::set_property(self.as_ref(), "buffer-time", buffer_time) + ObjectExt::set_property(self.as_ref(), "buffer-time", buffer_time) } #[doc(alias = "latency-time")] fn latency_time(&self) -> i64 { - glib::ObjectExt::property(self.as_ref(), "latency-time") + ObjectExt::property(self.as_ref(), "latency-time") } #[doc(alias = "latency-time")] fn set_latency_time(&self, latency_time: i64) { - glib::ObjectExt::set_property(self.as_ref(), "latency-time", latency_time) + ObjectExt::set_property(self.as_ref(), "latency-time", latency_time) } #[doc(alias = "actual-buffer-time")] diff --git a/gstreamer-audio/src/auto/enums.rs b/gstreamer-audio/src/auto/enums.rs index 04c2f9479..0029ea4f8 100644 --- a/gstreamer-audio/src/auto/enums.rs +++ b/gstreamer-audio/src/auto/enums.rs @@ -3,7 +3,7 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type}; +use glib::{prelude::*, translate::*}; use std::fmt; #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] @@ -56,7 +56,7 @@ impl FromGlib for AudioDitherMethod { impl StaticType for AudioDitherMethod { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_audio_dither_method_get_type()) } } } @@ -75,7 +75,7 @@ impl glib::value::ValueType for AudioDitherMethod { type Type = Self; } -unsafe impl<'a> FromValue<'a> for AudioDitherMethod { +unsafe impl<'a> glib::value::FromValue<'a> for AudioDitherMethod { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -284,7 +284,7 @@ impl FromGlib for AudioFormat { impl StaticType for AudioFormat { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_audio_format_get_type()) } } } @@ -303,7 +303,7 @@ impl glib::value::ValueType for AudioFormat { type Type = Self; } -unsafe impl<'a> FromValue<'a> for AudioFormat { +unsafe impl<'a> glib::value::FromValue<'a> for AudioFormat { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -379,7 +379,7 @@ impl FromGlib for AudioLayout { impl StaticType for AudioLayout { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_audio_layout_get_type()) } } } @@ -398,7 +398,7 @@ impl glib::value::ValueType for AudioLayout { type Type = Self; } -unsafe impl<'a> FromValue<'a> for AudioLayout { +unsafe impl<'a> glib::value::FromValue<'a> for AudioLayout { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -486,7 +486,7 @@ impl FromGlib for AudioNoiseShapingMethod { impl StaticType for AudioNoiseShapingMethod { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_audio_noise_shaping_method_get_type()) } } } @@ -505,7 +505,7 @@ impl glib::value::ValueType for AudioNoiseShapingMethod { type Type = Self; } -unsafe impl<'a> FromValue<'a> for AudioNoiseShapingMethod { +unsafe impl<'a> glib::value::FromValue<'a> for AudioNoiseShapingMethod { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -593,7 +593,7 @@ impl FromGlib for AudioResamplerMethod { impl StaticType for AudioResamplerMethod { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_audio_resampler_method_get_type()) } } } @@ -612,7 +612,7 @@ impl glib::value::ValueType for AudioResamplerMethod { type Type = Self; } -unsafe impl<'a> FromValue<'a> for AudioResamplerMethod { +unsafe impl<'a> glib::value::FromValue<'a> for AudioResamplerMethod { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -746,7 +746,7 @@ impl FromGlib for AudioRingBufferFormatType { impl StaticType for AudioRingBufferFormatType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_audio_ring_buffer_format_type_get_type()) } } } @@ -765,7 +765,7 @@ impl glib::value::ValueType for AudioRingBufferFormatType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for AudioRingBufferFormatType { +unsafe impl<'a> glib::value::FromValue<'a> for AudioRingBufferFormatType { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer-audio/src/auto/flags.rs b/gstreamer-audio/src/auto/flags.rs index 22886dd13..f56d79994 100644 --- a/gstreamer-audio/src/auto/flags.rs +++ b/gstreamer-audio/src/auto/flags.rs @@ -3,10 +3,10 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -use bitflags::bitflags; -use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type}; +use glib::{bitflags::bitflags, prelude::*, translate::*}; bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstAudioFlags")] pub struct AudioFlags: u32 { #[doc(alias = "GST_AUDIO_FLAG_UNPOSITIONED")] @@ -35,7 +35,7 @@ impl FromGlib for AudioFlags { impl StaticType for AudioFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_audio_flags_get_type()) } } } @@ -54,7 +54,7 @@ impl glib::value::ValueType for AudioFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for AudioFlags { +unsafe impl<'a> glib::value::FromValue<'a> for AudioFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -89,6 +89,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstAudioFormatFlags")] pub struct AudioFormatFlags: u32 { #[doc(alias = "GST_AUDIO_FORMAT_FLAG_INTEGER")] @@ -125,7 +126,7 @@ impl FromGlib for AudioFormatFlags { impl StaticType for AudioFormatFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_audio_format_flags_get_type()) } } } @@ -144,7 +145,7 @@ impl glib::value::ValueType for AudioFormatFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for AudioFormatFlags { +unsafe impl<'a> glib::value::FromValue<'a> for AudioFormatFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -179,6 +180,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstAudioPackFlags")] pub struct AudioPackFlags: u32 { #[doc(alias = "GST_AUDIO_PACK_FLAG_TRUNCATE_RANGE")] @@ -207,7 +209,7 @@ impl FromGlib for AudioPackFlags { impl StaticType for AudioPackFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_audio_pack_flags_get_type()) } } } @@ -226,7 +228,7 @@ impl glib::value::ValueType for AudioPackFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for AudioPackFlags { +unsafe impl<'a> glib::value::FromValue<'a> for AudioPackFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer-audio/src/auto/versions.txt b/gstreamer-audio/src/auto/versions.txt index 6c0d75e68..7942439dc 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 @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-audio/sys/src/auto/versions.txt b/gstreamer-audio/sys/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-audio/sys/src/auto/versions.txt +++ b/gstreamer-audio/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-base/src/auto/aggregator.rs b/gstreamer-base/src/auto/aggregator.rs index 53e39144b..4f917e251 100644 --- a/gstreamer-base/src/auto/aggregator.rs +++ b/gstreamer-base/src/auto/aggregator.rs @@ -188,38 +188,38 @@ pub trait AggregatorExt: IsA + sealed::Sealed + 'static { #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "emit-signals")] fn emits_signals(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "emit-signals") + ObjectExt::property(self.as_ref(), "emit-signals") } #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "emit-signals")] fn set_emit_signals(&self, emit_signals: bool) { - glib::ObjectExt::set_property(self.as_ref(), "emit-signals", emit_signals) + ObjectExt::set_property(self.as_ref(), "emit-signals", emit_signals) } #[doc(alias = "start-time")] fn start_time(&self) -> u64 { - glib::ObjectExt::property(self.as_ref(), "start-time") + ObjectExt::property(self.as_ref(), "start-time") } #[doc(alias = "start-time")] fn set_start_time(&self, start_time: u64) { - glib::ObjectExt::set_property(self.as_ref(), "start-time", start_time) + ObjectExt::set_property(self.as_ref(), "start-time", start_time) } #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "start-time-selection")] fn start_time_selection(&self) -> AggregatorStartTimeSelection { - glib::ObjectExt::property(self.as_ref(), "start-time-selection") + ObjectExt::property(self.as_ref(), "start-time-selection") } #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "start-time-selection")] fn set_start_time_selection(&self, start_time_selection: AggregatorStartTimeSelection) { - glib::ObjectExt::set_property(self.as_ref(), "start-time-selection", start_time_selection) + ObjectExt::set_property(self.as_ref(), "start-time-selection", start_time_selection) } #[cfg(feature = "v1_18")] diff --git a/gstreamer-base/src/auto/aggregator_pad.rs b/gstreamer-base/src/auto/aggregator_pad.rs index a08099828..43ae7ebae 100644 --- a/gstreamer-base/src/auto/aggregator_pad.rs +++ b/gstreamer-base/src/auto/aggregator_pad.rs @@ -94,14 +94,14 @@ pub trait AggregatorPadExt: IsA + sealed::Sealed + 'static { #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "emit-signals")] fn emits_signals(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "emit-signals") + ObjectExt::property(self.as_ref(), "emit-signals") } #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "emit-signals")] fn set_emit_signals(&self, emit_signals: bool) { - glib::ObjectExt::set_property(self.as_ref(), "emit-signals", emit_signals) + ObjectExt::set_property(self.as_ref(), "emit-signals", emit_signals) } #[doc(alias = "buffer-consumed")] diff --git a/gstreamer-base/src/auto/base_parse.rs b/gstreamer-base/src/auto/base_parse.rs index e63e46eeb..61c53dca2 100644 --- a/gstreamer-base/src/auto/base_parse.rs +++ b/gstreamer-base/src/auto/base_parse.rs @@ -145,12 +145,12 @@ pub trait BaseParseExt: IsA + sealed::Sealed + 'static { #[doc(alias = "disable-passthrough")] fn is_disable_passthrough(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "disable-passthrough") + ObjectExt::property(self.as_ref(), "disable-passthrough") } #[doc(alias = "disable-passthrough")] fn set_disable_passthrough(&self, disable_passthrough: bool) { - glib::ObjectExt::set_property(self.as_ref(), "disable-passthrough", disable_passthrough) + ObjectExt::set_property(self.as_ref(), "disable-passthrough", disable_passthrough) } #[doc(alias = "disable-passthrough")] diff --git a/gstreamer-base/src/auto/base_sink.rs b/gstreamer-base/src/auto/base_sink.rs index 8efdc13ad..a21a64832 100644 --- a/gstreamer-base/src/auto/base_sink.rs +++ b/gstreamer-base/src/auto/base_sink.rs @@ -253,30 +253,30 @@ pub trait BaseSinkExt: IsA + sealed::Sealed + 'static { #[doc(alias = "async")] fn is_async(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "async") + ObjectExt::property(self.as_ref(), "async") } #[doc(alias = "async")] fn set_async(&self, async_: bool) { - glib::ObjectExt::set_property(self.as_ref(), "async", async_) + ObjectExt::set_property(self.as_ref(), "async", async_) } #[doc(alias = "enable-last-sample")] fn enables_last_sample(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "enable-last-sample") + ObjectExt::property(self.as_ref(), "enable-last-sample") } #[doc(alias = "enable-last-sample")] fn set_enable_last_sample(&self, enable_last_sample: bool) { - glib::ObjectExt::set_property(self.as_ref(), "enable-last-sample", enable_last_sample) + ObjectExt::set_property(self.as_ref(), "enable-last-sample", enable_last_sample) } fn is_qos(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "qos") + ObjectExt::property(self.as_ref(), "qos") } fn set_qos(&self, qos: bool) { - glib::ObjectExt::set_property(self.as_ref(), "qos", qos) + ObjectExt::set_property(self.as_ref(), "qos", qos) } #[doc(alias = "async")] diff --git a/gstreamer-base/src/auto/base_src.rs b/gstreamer-base/src/auto/base_src.rs index f280a7f67..54e399943 100644 --- a/gstreamer-base/src/auto/base_src.rs +++ b/gstreamer-base/src/auto/base_src.rs @@ -208,20 +208,20 @@ pub trait BaseSrcExt: IsA + sealed::Sealed + 'static { #[doc(alias = "num-buffers")] fn num_buffers(&self) -> i32 { - glib::ObjectExt::property(self.as_ref(), "num-buffers") + ObjectExt::property(self.as_ref(), "num-buffers") } #[doc(alias = "num-buffers")] fn set_num_buffers(&self, num_buffers: i32) { - glib::ObjectExt::set_property(self.as_ref(), "num-buffers", num_buffers) + ObjectExt::set_property(self.as_ref(), "num-buffers", num_buffers) } fn is_typefind(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "typefind") + ObjectExt::property(self.as_ref(), "typefind") } fn set_typefind(&self, typefind: bool) { - glib::ObjectExt::set_property(self.as_ref(), "typefind", typefind) + ObjectExt::set_property(self.as_ref(), "typefind", typefind) } #[doc(alias = "blocksize")] diff --git a/gstreamer-base/src/auto/base_transform.rs b/gstreamer-base/src/auto/base_transform.rs index 9a6eb436c..0d6860cc2 100644 --- a/gstreamer-base/src/auto/base_transform.rs +++ b/gstreamer-base/src/auto/base_transform.rs @@ -151,11 +151,11 @@ pub trait BaseTransformExt: IsA + sealed::Sealed + 'static { } fn is_qos(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "qos") + ObjectExt::property(self.as_ref(), "qos") } fn set_qos(&self, qos: bool) { - glib::ObjectExt::set_property(self.as_ref(), "qos", qos) + ObjectExt::set_property(self.as_ref(), "qos", qos) } #[doc(alias = "qos")] diff --git a/gstreamer-base/src/auto/enums.rs b/gstreamer-base/src/auto/enums.rs index 8030f45dc..b4d323af8 100644 --- a/gstreamer-base/src/auto/enums.rs +++ b/gstreamer-base/src/auto/enums.rs @@ -5,7 +5,7 @@ #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] -use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type}; +use glib::{prelude::*, translate::*}; #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] @@ -61,7 +61,7 @@ impl FromGlib for AggregatorStartTimeSelec #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl StaticType for AggregatorStartTimeSelection { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_aggregator_start_time_selection_get_type()) } } } @@ -86,7 +86,7 @@ impl glib::value::ValueType for AggregatorStartTimeSelection { #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] -unsafe impl<'a> FromValue<'a> for AggregatorStartTimeSelection { +unsafe impl<'a> glib::value::FromValue<'a> for AggregatorStartTimeSelection { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer-base/src/auto/flags.rs b/gstreamer-base/src/auto/flags.rs index b9b9cf963..ff3ba75ea 100644 --- a/gstreamer-base/src/auto/flags.rs +++ b/gstreamer-base/src/auto/flags.rs @@ -3,10 +3,10 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -use bitflags::bitflags; -use glib::translate::*; +use glib::{bitflags::bitflags, translate::*}; bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstBaseParseFrameFlags")] pub struct BaseParseFrameFlags: u32 { #[doc(alias = "GST_BASE_PARSE_FRAME_FLAG_NEW_FRAME")] diff --git a/gstreamer-base/src/auto/versions.txt b/gstreamer-base/src/auto/versions.txt index 6c0d75e68..7942439dc 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 @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-base/sys/src/auto/versions.txt b/gstreamer-base/sys/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-base/sys/src/auto/versions.txt +++ b/gstreamer-base/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-check/src/auto/test_clock.rs b/gstreamer-check/src/auto/test_clock.rs index 60a9f0f60..f70b420b3 100644 --- a/gstreamer-check/src/auto/test_clock.rs +++ b/gstreamer-check/src/auto/test_clock.rs @@ -81,17 +81,17 @@ impl TestClock { #[doc(alias = "clock-type")] pub fn clock_type(&self) -> gst::ClockType { - glib::ObjectExt::property(self, "clock-type") + ObjectExt::property(self, "clock-type") } #[doc(alias = "clock-type")] pub fn set_clock_type(&self, clock_type: gst::ClockType) { - glib::ObjectExt::set_property(self, "clock-type", clock_type) + ObjectExt::set_property(self, "clock-type", clock_type) } #[doc(alias = "start-time")] pub fn start_time(&self) -> u64 { - glib::ObjectExt::property(self, "start-time") + 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 6c0d75e68..7942439dc 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 @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-check/sys/src/auto/versions.txt b/gstreamer-check/sys/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-check/sys/src/auto/versions.txt +++ b/gstreamer-check/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-controller/src/auto/argb_control_binding.rs b/gstreamer-controller/src/auto/argb_control_binding.rs index 11004a03a..17cd24a75 100644 --- a/gstreamer-controller/src/auto/argb_control_binding.rs +++ b/gstreamer-controller/src/auto/argb_control_binding.rs @@ -57,42 +57,42 @@ mod sealed { pub trait ARGBControlBindingExt: IsA + sealed::Sealed + 'static { #[doc(alias = "control-source-a")] fn control_source_a(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "control-source-a") + ObjectExt::property(self.as_ref(), "control-source-a") } #[doc(alias = "control-source-a")] fn set_control_source_a>(&self, control_source_a: Option<&P>) { - glib::ObjectExt::set_property(self.as_ref(), "control-source-a", control_source_a) + ObjectExt::set_property(self.as_ref(), "control-source-a", control_source_a) } #[doc(alias = "control-source-b")] fn control_source_b(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "control-source-b") + ObjectExt::property(self.as_ref(), "control-source-b") } #[doc(alias = "control-source-b")] fn set_control_source_b>(&self, control_source_b: Option<&P>) { - glib::ObjectExt::set_property(self.as_ref(), "control-source-b", control_source_b) + ObjectExt::set_property(self.as_ref(), "control-source-b", control_source_b) } #[doc(alias = "control-source-g")] fn control_source_g(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "control-source-g") + ObjectExt::property(self.as_ref(), "control-source-g") } #[doc(alias = "control-source-g")] fn set_control_source_g>(&self, control_source_g: Option<&P>) { - glib::ObjectExt::set_property(self.as_ref(), "control-source-g", control_source_g) + ObjectExt::set_property(self.as_ref(), "control-source-g", control_source_g) } #[doc(alias = "control-source-r")] fn control_source_r(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "control-source-r") + ObjectExt::property(self.as_ref(), "control-source-r") } #[doc(alias = "control-source-r")] fn set_control_source_r>(&self, control_source_r: Option<&P>) { - glib::ObjectExt::set_property(self.as_ref(), "control-source-r", control_source_r) + ObjectExt::set_property(self.as_ref(), "control-source-r", control_source_r) } #[doc(alias = "control-source-a")] diff --git a/gstreamer-controller/src/auto/direct_control_binding.rs b/gstreamer-controller/src/auto/direct_control_binding.rs index d7e415dc6..e92afcf04 100644 --- a/gstreamer-controller/src/auto/direct_control_binding.rs +++ b/gstreamer-controller/src/auto/direct_control_binding.rs @@ -67,17 +67,17 @@ mod sealed { pub trait DirectControlBindingExt: IsA + sealed::Sealed + 'static { fn is_absolute(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "absolute") + ObjectExt::property(self.as_ref(), "absolute") } #[doc(alias = "control-source")] fn control_source(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "control-source") + ObjectExt::property(self.as_ref(), "control-source") } #[doc(alias = "control-source")] fn set_control_source>(&self, control_source: Option<&P>) { - glib::ObjectExt::set_property(self.as_ref(), "control-source", control_source) + ObjectExt::set_property(self.as_ref(), "control-source", control_source) } #[doc(alias = "control-source")] diff --git a/gstreamer-controller/src/auto/enums.rs b/gstreamer-controller/src/auto/enums.rs index c83275664..2e710837e 100644 --- a/gstreamer-controller/src/auto/enums.rs +++ b/gstreamer-controller/src/auto/enums.rs @@ -3,7 +3,7 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type}; +use glib::{prelude::*, translate::*}; #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] @@ -55,7 +55,7 @@ impl FromGlib for InterpolationMode { impl StaticType for InterpolationMode { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_interpolation_mode_get_type()) } } } @@ -74,7 +74,7 @@ impl glib::value::ValueType for InterpolationMode { type Type = Self; } -unsafe impl<'a> FromValue<'a> for InterpolationMode { +unsafe impl<'a> glib::value::FromValue<'a> for InterpolationMode { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -162,7 +162,7 @@ impl FromGlib for LFOWaveform { impl StaticType for LFOWaveform { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_lfo_waveform_get_type()) } } } @@ -181,7 +181,7 @@ impl glib::value::ValueType for LFOWaveform { type Type = Self; } -unsafe impl<'a> FromValue<'a> for LFOWaveform { +unsafe impl<'a> glib::value::FromValue<'a> for LFOWaveform { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer-controller/src/auto/interpolation_control_source.rs b/gstreamer-controller/src/auto/interpolation_control_source.rs index a779d944a..22ea4f3cf 100644 --- a/gstreamer-controller/src/auto/interpolation_control_source.rs +++ b/gstreamer-controller/src/auto/interpolation_control_source.rs @@ -51,11 +51,11 @@ pub trait InterpolationControlSourceExt: IsA + sealed::Sealed + 'static { fn mode(&self) -> InterpolationMode { - glib::ObjectExt::property(self.as_ref(), "mode") + ObjectExt::property(self.as_ref(), "mode") } fn set_mode(&self, mode: InterpolationMode) { - glib::ObjectExt::set_property(self.as_ref(), "mode", mode) + ObjectExt::set_property(self.as_ref(), "mode", mode) } #[doc(alias = "mode")] diff --git a/gstreamer-controller/src/auto/lfo_control_source.rs b/gstreamer-controller/src/auto/lfo_control_source.rs index 14ba770b7..620727741 100644 --- a/gstreamer-controller/src/auto/lfo_control_source.rs +++ b/gstreamer-controller/src/auto/lfo_control_source.rs @@ -48,43 +48,43 @@ mod sealed { pub trait LFOControlSourceExt: IsA + sealed::Sealed + 'static { fn amplitude(&self) -> f64 { - glib::ObjectExt::property(self.as_ref(), "amplitude") + ObjectExt::property(self.as_ref(), "amplitude") } fn set_amplitude(&self, amplitude: f64) { - glib::ObjectExt::set_property(self.as_ref(), "amplitude", amplitude) + ObjectExt::set_property(self.as_ref(), "amplitude", amplitude) } fn frequency(&self) -> f64 { - glib::ObjectExt::property(self.as_ref(), "frequency") + ObjectExt::property(self.as_ref(), "frequency") } fn set_frequency(&self, frequency: f64) { - glib::ObjectExt::set_property(self.as_ref(), "frequency", frequency) + ObjectExt::set_property(self.as_ref(), "frequency", frequency) } fn offset(&self) -> f64 { - glib::ObjectExt::property(self.as_ref(), "offset") + ObjectExt::property(self.as_ref(), "offset") } fn set_offset(&self, offset: f64) { - glib::ObjectExt::set_property(self.as_ref(), "offset", offset) + ObjectExt::set_property(self.as_ref(), "offset", offset) } fn timeshift(&self) -> u64 { - glib::ObjectExt::property(self.as_ref(), "timeshift") + ObjectExt::property(self.as_ref(), "timeshift") } fn set_timeshift(&self, timeshift: u64) { - glib::ObjectExt::set_property(self.as_ref(), "timeshift", timeshift) + ObjectExt::set_property(self.as_ref(), "timeshift", timeshift) } fn waveform(&self) -> LFOWaveform { - glib::ObjectExt::property(self.as_ref(), "waveform") + ObjectExt::property(self.as_ref(), "waveform") } fn set_waveform(&self, waveform: LFOWaveform) { - glib::ObjectExt::set_property(self.as_ref(), "waveform", waveform) + ObjectExt::set_property(self.as_ref(), "waveform", waveform) } #[doc(alias = "amplitude")] diff --git a/gstreamer-controller/src/auto/trigger_control_source.rs b/gstreamer-controller/src/auto/trigger_control_source.rs index 2b7ab30ae..7255c087b 100644 --- a/gstreamer-controller/src/auto/trigger_control_source.rs +++ b/gstreamer-controller/src/auto/trigger_control_source.rs @@ -48,11 +48,11 @@ mod sealed { pub trait TriggerControlSourceExt: IsA + sealed::Sealed + 'static { fn tolerance(&self) -> i64 { - glib::ObjectExt::property(self.as_ref(), "tolerance") + ObjectExt::property(self.as_ref(), "tolerance") } fn set_tolerance(&self, tolerance: i64) { - glib::ObjectExt::set_property(self.as_ref(), "tolerance", tolerance) + ObjectExt::set_property(self.as_ref(), "tolerance", tolerance) } #[doc(alias = "tolerance")] diff --git a/gstreamer-controller/src/auto/versions.txt b/gstreamer-controller/src/auto/versions.txt index 6c0d75e68..7942439dc 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 @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-controller/sys/src/auto/versions.txt b/gstreamer-controller/sys/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-controller/sys/src/auto/versions.txt +++ b/gstreamer-controller/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-editing-services/src/auto/audio_uri_source.rs b/gstreamer-editing-services/src/auto/audio_uri_source.rs index 1683bbc1f..4832e4a76 100644 --- a/gstreamer-editing-services/src/auto/audio_uri_source.rs +++ b/gstreamer-editing-services/src/auto/audio_uri_source.rs @@ -26,7 +26,7 @@ mod sealed { pub trait AudioUriSourceExt: IsA + sealed::Sealed + 'static { fn uri(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "uri") + 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 79f74d85e..9b04bc8eb 100644 --- a/gstreamer-editing-services/src/auto/container.rs +++ b/gstreamer-editing-services/src/auto/container.rs @@ -111,7 +111,7 @@ pub trait GESContainerExt: IsA + sealed::Sealed + 'static { } fn height(&self) -> u32 { - glib::ObjectExt::property(self.as_ref(), "height") + ObjectExt::property(self.as_ref(), "height") } #[doc(alias = "child-added")] diff --git a/gstreamer-editing-services/src/auto/discoverer_manager.rs b/gstreamer-editing-services/src/auto/discoverer_manager.rs index f8fca648d..95abb14bb 100644 --- a/gstreamer-editing-services/src/auto/discoverer_manager.rs +++ b/gstreamer-editing-services/src/auto/discoverer_manager.rs @@ -59,12 +59,12 @@ impl DiscovererManager { #[doc(alias = "use-cache")] pub fn get_property_use_cache(&self) -> bool { - glib::ObjectExt::property(self, "use-cache") + ObjectExt::property(self, "use-cache") } #[doc(alias = "use-cache")] pub fn set_property_use_cache(&self, use_cache: bool) { - glib::ObjectExt::set_property(self, "use-cache", use_cache) + ObjectExt::set_property(self, "use-cache", use_cache) } #[doc(alias = "ges_discoverer_manager_get_default")] diff --git a/gstreamer-editing-services/src/auto/effect.rs b/gstreamer-editing-services/src/auto/effect.rs index 699775e2f..ef66d275c 100644 --- a/gstreamer-editing-services/src/auto/effect.rs +++ b/gstreamer-editing-services/src/auto/effect.rs @@ -36,7 +36,7 @@ mod sealed { pub trait EffectExt: IsA + sealed::Sealed + 'static { #[doc(alias = "bin-description")] fn bin_description(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "bin-description") + 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 98fee22d3..6cdc37c4a 100644 --- a/gstreamer-editing-services/src/auto/effect_clip.rs +++ b/gstreamer-editing-services/src/auto/effect_clip.rs @@ -43,12 +43,12 @@ mod sealed { pub trait EffectClipExt: IsA + sealed::Sealed + 'static { #[doc(alias = "audio-bin-description")] fn audio_bin_description(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "audio-bin-description") + ObjectExt::property(self.as_ref(), "audio-bin-description") } #[doc(alias = "video-bin-description")] fn video_bin_description(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "video-bin-description") + ObjectExt::property(self.as_ref(), "video-bin-description") } } diff --git a/gstreamer-editing-services/src/auto/enums.rs b/gstreamer-editing-services/src/auto/enums.rs index 9c44cbc91..0d888d39e 100644 --- a/gstreamer-editing-services/src/auto/enums.rs +++ b/gstreamer-editing-services/src/auto/enums.rs @@ -6,7 +6,7 @@ #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] use glib::GStr; -use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type}; +use glib::{prelude::*, translate::*}; #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] use std::fmt; @@ -176,7 +176,7 @@ impl FromGlib for Edge { impl StaticType for Edge { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::ges_edge_get_type()) } } } @@ -195,7 +195,7 @@ impl glib::value::ValueType for Edge { type Type = Self; } -unsafe impl<'a> FromValue<'a> for Edge { +unsafe impl<'a> glib::value::FromValue<'a> for Edge { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -306,7 +306,7 @@ impl FromGlib for EditMode { impl StaticType for EditMode { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::ges_edit_mode_get_type()) } } } @@ -325,7 +325,7 @@ impl glib::value::ValueType for EditMode { type Type = Self; } -unsafe impl<'a> FromValue<'a> for EditMode { +unsafe impl<'a> glib::value::FromValue<'a> for EditMode { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -481,7 +481,7 @@ impl FromGlib for TextHAlign { impl StaticType for TextHAlign { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::ges_text_halign_get_type()) } } } @@ -500,7 +500,7 @@ impl glib::value::ValueType for TextHAlign { type Type = Self; } -unsafe impl<'a> FromValue<'a> for TextHAlign { +unsafe impl<'a> glib::value::FromValue<'a> for TextHAlign { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -592,7 +592,7 @@ impl FromGlib for TextVAlign { impl StaticType for TextVAlign { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::ges_text_valign_get_type()) } } } @@ -611,7 +611,7 @@ impl glib::value::ValueType for TextVAlign { type Type = Self; } -unsafe impl<'a> FromValue<'a> for TextVAlign { +unsafe impl<'a> glib::value::FromValue<'a> for TextVAlign { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -973,7 +973,7 @@ impl FromGlib for VideoStandardTransitionTy impl StaticType for VideoStandardTransitionType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::ges_video_standard_transition_type_get_type()) } } } @@ -992,7 +992,7 @@ impl glib::value::ValueType for VideoStandardTransitionType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoStandardTransitionType { +unsafe impl<'a> glib::value::FromValue<'a> for VideoStandardTransitionType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1130,7 +1130,7 @@ impl FromGlib for VideoTestPattern { impl StaticType for VideoTestPattern { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::ges_video_test_pattern_get_type()) } } } @@ -1149,7 +1149,7 @@ impl glib::value::ValueType for VideoTestPattern { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoTestPattern { +unsafe impl<'a> glib::value::FromValue<'a> for VideoTestPattern { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer-editing-services/src/auto/flags.rs b/gstreamer-editing-services/src/auto/flags.rs index 4db32b974..260e09cdd 100644 --- a/gstreamer-editing-services/src/auto/flags.rs +++ b/gstreamer-editing-services/src/auto/flags.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -use bitflags::bitflags; -use glib::{translate::*, value::FromValue, value::ToValue, GStr, StaticType, Type}; +use glib::{bitflags::bitflags, prelude::*, translate::*, GStr}; use std::fmt; #[cfg(feature = "v1_20")] bitflags! { #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GESMarkerFlags")] pub struct MarkerFlags: u32 { #[doc(alias = "GES_MARKER_FLAG_NONE")] @@ -46,7 +46,7 @@ impl FromGlib for MarkerFlags { #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for MarkerFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::ges_marker_flags_get_type()) } } } @@ -71,7 +71,7 @@ impl glib::value::ValueType for MarkerFlags { #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] -unsafe impl<'a> FromValue<'a> for MarkerFlags { +unsafe impl<'a> glib::value::FromValue<'a> for MarkerFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -110,6 +110,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GESMetaFlag")] pub struct MetaFlag: u32 { #[doc(alias = "GES_META_READABLE")] @@ -142,7 +143,7 @@ impl FromGlib for MetaFlag { impl StaticType for MetaFlag { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::ges_meta_flag_get_type()) } } } @@ -161,7 +162,7 @@ impl glib::value::ValueType for MetaFlag { type Type = Self; } -unsafe impl<'a> FromValue<'a> for MetaFlag { +unsafe impl<'a> glib::value::FromValue<'a> for MetaFlag { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -196,6 +197,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GESPipelineFlags")] pub struct PipelineFlags: u32 { #[doc(alias = "GES_PIPELINE_MODE_PREVIEW_AUDIO")] @@ -232,7 +234,7 @@ impl FromGlib for PipelineFlags { impl StaticType for PipelineFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::ges_pipeline_flags_get_type()) } } } @@ -251,7 +253,7 @@ impl glib::value::ValueType for PipelineFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for PipelineFlags { +unsafe impl<'a> glib::value::FromValue<'a> for PipelineFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -286,6 +288,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GESTrackType")] pub struct TrackType: u32 { #[doc(alias = "GES_TRACK_TYPE_UNKNOWN")] @@ -341,7 +344,7 @@ impl FromGlib for TrackType { impl StaticType for TrackType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::ges_track_type_get_type()) } } } @@ -360,7 +363,7 @@ impl glib::value::ValueType for TrackType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for TrackType { +unsafe impl<'a> glib::value::FromValue<'a> for TrackType { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer-editing-services/src/auto/image_source.rs b/gstreamer-editing-services/src/auto/image_source.rs index cc7e3fb9f..59c12a9d2 100644 --- a/gstreamer-editing-services/src/auto/image_source.rs +++ b/gstreamer-editing-services/src/auto/image_source.rs @@ -26,7 +26,7 @@ mod sealed { pub trait ImageSourceExt: IsA + sealed::Sealed + 'static { fn uri(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "uri") + 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 63a4cd748..52f47a439 100644 --- a/gstreamer-editing-services/src/auto/marker.rs +++ b/gstreamer-editing-services/src/auto/marker.rs @@ -24,7 +24,7 @@ impl Marker { #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn position(&self) -> u64 { - glib::ObjectExt::property(self, "position") + ObjectExt::property(self, "position") } #[cfg(feature = "v1_18")] diff --git a/gstreamer-editing-services/src/auto/marker_list.rs b/gstreamer-editing-services/src/auto/marker_list.rs index 372dde28a..43728232d 100644 --- a/gstreamer-editing-services/src/auto/marker_list.rs +++ b/gstreamer-editing-services/src/auto/marker_list.rs @@ -80,13 +80,13 @@ impl MarkerList { #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn flags(&self) -> MarkerFlags { - glib::ObjectExt::property(self, "flags") + ObjectExt::property(self, "flags") } #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn set_flags(&self, flags: MarkerFlags) { - glib::ObjectExt::set_property(self, "flags", flags) + ObjectExt::set_property(self, "flags", flags) } #[cfg(feature = "v1_18")] diff --git a/gstreamer-editing-services/src/auto/multi_file_source.rs b/gstreamer-editing-services/src/auto/multi_file_source.rs index bb1e31cb8..57be37f3c 100644 --- a/gstreamer-editing-services/src/auto/multi_file_source.rs +++ b/gstreamer-editing-services/src/auto/multi_file_source.rs @@ -32,7 +32,7 @@ mod sealed { pub trait MultiFileSourceExt: IsA + sealed::Sealed + 'static { fn uri(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "uri") + 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 0b42c5dc6..65d162a94 100644 --- a/gstreamer-editing-services/src/auto/pipeline.rs +++ b/gstreamer-editing-services/src/auto/pipeline.rs @@ -179,46 +179,46 @@ pub trait GESPipelineExt: IsA + sealed::Sealed + 'static { #[doc(alias = "audio-filter")] fn audio_filter(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "audio-filter") + ObjectExt::property(self.as_ref(), "audio-filter") } #[doc(alias = "audio-filter")] fn set_audio_filter>(&self, audio_filter: Option<&P>) { - glib::ObjectExt::set_property(self.as_ref(), "audio-filter", audio_filter) + ObjectExt::set_property(self.as_ref(), "audio-filter", audio_filter) } #[doc(alias = "audio-sink")] fn audio_sink(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "audio-sink") + ObjectExt::property(self.as_ref(), "audio-sink") } #[doc(alias = "audio-sink")] fn set_audio_sink>(&self, audio_sink: Option<&P>) { - glib::ObjectExt::set_property(self.as_ref(), "audio-sink", audio_sink) + ObjectExt::set_property(self.as_ref(), "audio-sink", audio_sink) } fn timeline(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "timeline") + ObjectExt::property(self.as_ref(), "timeline") } #[doc(alias = "video-filter")] fn video_filter(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "video-filter") + ObjectExt::property(self.as_ref(), "video-filter") } #[doc(alias = "video-filter")] fn set_video_filter>(&self, video_filter: Option<&P>) { - glib::ObjectExt::set_property(self.as_ref(), "video-filter", video_filter) + ObjectExt::set_property(self.as_ref(), "video-filter", video_filter) } #[doc(alias = "video-sink")] fn video_sink(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "video-sink") + ObjectExt::property(self.as_ref(), "video-sink") } #[doc(alias = "video-sink")] fn set_video_sink>(&self, video_sink: Option<&P>) { - glib::ObjectExt::set_property(self.as_ref(), "video-sink", video_sink) + ObjectExt::set_property(self.as_ref(), "video-sink", video_sink) } #[doc(alias = "audio-filter")] diff --git a/gstreamer-editing-services/src/auto/test_clip.rs b/gstreamer-editing-services/src/auto/test_clip.rs index d7c76d088..6ad7bb0ae 100644 --- a/gstreamer-editing-services/src/auto/test_clip.rs +++ b/gstreamer-editing-services/src/auto/test_clip.rs @@ -101,11 +101,11 @@ pub trait TestClipExt: IsA + sealed::Sealed + 'static { } fn freq(&self) -> f64 { - glib::ObjectExt::property(self.as_ref(), "freq") + ObjectExt::property(self.as_ref(), "freq") } fn set_freq(&self, freq: f64) { - glib::ObjectExt::set_property(self.as_ref(), "freq", freq) + ObjectExt::set_property(self.as_ref(), "freq", freq) } #[doc(alias = "freq")] diff --git a/gstreamer-editing-services/src/auto/text_overlay_clip.rs b/gstreamer-editing-services/src/auto/text_overlay_clip.rs index 6f828e932..33722db14 100644 --- a/gstreamer-editing-services/src/auto/text_overlay_clip.rs +++ b/gstreamer-editing-services/src/auto/text_overlay_clip.rs @@ -159,11 +159,11 @@ pub trait TextOverlayClipExt: IsA + sealed::Sealed + 'static { } fn set_halignment(&self, halignment: TextHAlign) { - glib::ObjectExt::set_property(self.as_ref(), "halignment", halignment) + ObjectExt::set_property(self.as_ref(), "halignment", halignment) } fn set_valignment(&self, valignment: TextVAlign) { - glib::ObjectExt::set_property(self.as_ref(), "valignment", valignment) + ObjectExt::set_property(self.as_ref(), "valignment", valignment) } #[doc(alias = "color")] diff --git a/gstreamer-editing-services/src/auto/timeline_element.rs b/gstreamer-editing-services/src/auto/timeline_element.rs index af7b939aa..fd8e5a0eb 100644 --- a/gstreamer-editing-services/src/auto/timeline_element.rs +++ b/gstreamer-editing-services/src/auto/timeline_element.rs @@ -563,20 +563,20 @@ pub trait TimelineElementExt: IsA + sealed::Sealed + 'static { #[doc(alias = "in-point")] fn in_point(&self) -> u64 { - glib::ObjectExt::property(self.as_ref(), "in-point") + ObjectExt::property(self.as_ref(), "in-point") } #[doc(alias = "in-point")] fn set_in_point(&self, in_point: u64) { - glib::ObjectExt::set_property(self.as_ref(), "in-point", in_point) + ObjectExt::set_property(self.as_ref(), "in-point", in_point) } fn is_serialize(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "serialize") + ObjectExt::property(self.as_ref(), "serialize") } fn set_serialize(&self, serialize: bool) { - glib::ObjectExt::set_property(self.as_ref(), "serialize", serialize) + ObjectExt::set_property(self.as_ref(), "serialize", serialize) } #[cfg(feature = "v1_18")] diff --git a/gstreamer-editing-services/src/auto/title_clip.rs b/gstreamer-editing-services/src/auto/title_clip.rs index f417d847e..d3cba438b 100644 --- a/gstreamer-editing-services/src/auto/title_clip.rs +++ b/gstreamer-editing-services/src/auto/title_clip.rs @@ -193,12 +193,12 @@ pub trait TitleClipExt: IsA + sealed::Sealed + 'static { #[cfg_attr(feature = "v1_6", deprecated = "Since 1.6")] fn background(&self) -> u32 { - glib::ObjectExt::property(self.as_ref(), "background") + ObjectExt::property(self.as_ref(), "background") } #[cfg_attr(feature = "v1_6", deprecated = "Since 1.6")] fn color(&self) -> u32 { - glib::ObjectExt::property(self.as_ref(), "color") + ObjectExt::property(self.as_ref(), "color") } #[deprecated = "Since 1.6"] diff --git a/gstreamer-editing-services/src/auto/track.rs b/gstreamer-editing-services/src/auto/track.rs index 20e667fab..0250cf6f5 100644 --- a/gstreamer-editing-services/src/auto/track.rs +++ b/gstreamer-editing-services/src/auto/track.rs @@ -196,29 +196,29 @@ pub trait GESTrackExt: IsA + sealed::Sealed + 'static { } fn duration(&self) -> u64 { - glib::ObjectExt::property(self.as_ref(), "duration") + ObjectExt::property(self.as_ref(), "duration") } #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn id(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "id") + ObjectExt::property(self.as_ref(), "id") } #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn set_id(&self, id: Option<&str>) { - glib::ObjectExt::set_property(self.as_ref(), "id", id) + ObjectExt::set_property(self.as_ref(), "id", id) } #[doc(alias = "restriction-caps")] fn get_property_restriction_caps(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "restriction-caps") + ObjectExt::property(self.as_ref(), "restriction-caps") } #[doc(alias = "track-type")] fn track_type(&self) -> TrackType { - glib::ObjectExt::property(self.as_ref(), "track-type") + ObjectExt::property(self.as_ref(), "track-type") } #[doc(alias = "commited")] diff --git a/gstreamer-editing-services/src/auto/transition_clip.rs b/gstreamer-editing-services/src/auto/transition_clip.rs index 6b5a8934e..8c02f123a 100644 --- a/gstreamer-editing-services/src/auto/transition_clip.rs +++ b/gstreamer-editing-services/src/auto/transition_clip.rs @@ -47,11 +47,11 @@ mod sealed { pub trait TransitionClipExt: IsA + sealed::Sealed + 'static { fn vtype(&self) -> VideoStandardTransitionType { - glib::ObjectExt::property(self.as_ref(), "vtype") + ObjectExt::property(self.as_ref(), "vtype") } fn set_vtype(&self, vtype: VideoStandardTransitionType) { - glib::ObjectExt::set_property(self.as_ref(), "vtype", vtype) + ObjectExt::set_property(self.as_ref(), "vtype", vtype) } #[doc(alias = "vtype")] diff --git a/gstreamer-editing-services/src/auto/uri_clip_asset.rs b/gstreamer-editing-services/src/auto/uri_clip_asset.rs index 97893bf1e..a5e46ef77 100644 --- a/gstreamer-editing-services/src/auto/uri_clip_asset.rs +++ b/gstreamer-editing-services/src/auto/uri_clip_asset.rs @@ -128,14 +128,14 @@ pub trait UriClipAssetExt: IsA + sealed::Sealed + 'static { } fn set_duration(&self, duration: u64) { - glib::ObjectExt::set_property(self.as_ref(), "duration", duration) + ObjectExt::set_property(self.as_ref(), "duration", duration) } #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "is-nested-timeline")] fn is_nested_timeline(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "is-nested-timeline") + ObjectExt::property(self.as_ref(), "is-nested-timeline") } #[doc(alias = "duration")] diff --git a/gstreamer-editing-services/src/auto/versions.txt b/gstreamer-editing-services/src/auto/versions.txt index 6c0d75e68..7942439dc 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 @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-editing-services/src/auto/video_transition.rs b/gstreamer-editing-services/src/auto/video_transition.rs index 212272e33..810464a88 100644 --- a/gstreamer-editing-services/src/auto/video_transition.rs +++ b/gstreamer-editing-services/src/auto/video_transition.rs @@ -108,12 +108,12 @@ pub trait VideoTransitionExt: IsA + sealed::Sealed + 'static { #[cfg_attr(feature = "v1_20", deprecated = "Since 1.20")] fn inverts(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "invert") + ObjectExt::property(self.as_ref(), "invert") } #[cfg_attr(feature = "v1_20", deprecated = "Since 1.20")] fn set_invert(&self, invert: bool) { - glib::ObjectExt::set_property(self.as_ref(), "invert", invert) + ObjectExt::set_property(self.as_ref(), "invert", invert) } #[doc(alias = "border")] diff --git a/gstreamer-editing-services/src/auto/video_uri_source.rs b/gstreamer-editing-services/src/auto/video_uri_source.rs index 087cede87..ed3296cd0 100644 --- a/gstreamer-editing-services/src/auto/video_uri_source.rs +++ b/gstreamer-editing-services/src/auto/video_uri_source.rs @@ -26,7 +26,7 @@ mod sealed { pub trait VideoUriSourceExt: IsA + sealed::Sealed + 'static { fn uri(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "uri") + ObjectExt::property(self.as_ref(), "uri") } } diff --git a/gstreamer-editing-services/sys/src/auto/versions.txt b/gstreamer-editing-services/sys/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-editing-services/sys/src/auto/versions.txt +++ b/gstreamer-editing-services/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-gl/egl/src/auto/versions.txt b/gstreamer-gl/egl/src/auto/versions.txt index 6c0d75e68..7942439dc 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 @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-gl/egl/sys/src/auto/versions.txt b/gstreamer-gl/egl/sys/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-gl/egl/sys/src/auto/versions.txt +++ b/gstreamer-gl/egl/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-gl/src/auto/enums.rs b/gstreamer-gl/src/auto/enums.rs index c4836e7fd..7ff27576c 100644 --- a/gstreamer-gl/src/auto/enums.rs +++ b/gstreamer-gl/src/auto/enums.rs @@ -4,10 +4,7 @@ // DO NOT EDIT use crate::{GLContext, GLSLProfile}; -use glib::{ - error::ErrorDomain, prelude::*, translate::*, value::FromValue, value::ToValue, Quark, - StaticType, Type, -}; +use glib::{prelude::*, translate::*}; use std::mem; #[cfg(feature = "v1_20")] @@ -75,7 +72,7 @@ impl FromGlib for GLConfigCaveat { #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for GLConfigCaveat { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_gl_config_caveat_get_type()) } } } @@ -100,7 +97,7 @@ impl glib::value::ValueType for GLConfigCaveat { #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] -unsafe impl<'a> FromValue<'a> for GLConfigCaveat { +unsafe impl<'a> glib::value::FromValue<'a> for GLConfigCaveat { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -194,9 +191,9 @@ impl FromGlib for GLContextError { } } -impl ErrorDomain for GLContextError { +impl glib::error::ErrorDomain for GLContextError { #[inline] - fn domain() -> Quark { + fn domain() -> glib::Quark { skip_assert_initialized!(); unsafe { from_glib(ffi::gst_gl_context_error_quark()) } @@ -220,7 +217,7 @@ impl ErrorDomain for GLContextError { impl StaticType for GLContextError { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_gl_context_error_get_type()) } } } @@ -239,7 +236,7 @@ impl glib::value::ValueType for GLContextError { type Type = Self; } -unsafe impl<'a> FromValue<'a> for GLContextError { +unsafe impl<'a> glib::value::FromValue<'a> for GLContextError { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -438,7 +435,7 @@ impl FromGlib for GLFormat { impl StaticType for GLFormat { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_gl_format_get_type()) } } } @@ -457,7 +454,7 @@ impl glib::value::ValueType for GLFormat { type Type = Self; } -unsafe impl<'a> FromValue<'a> for GLFormat { +unsafe impl<'a> glib::value::FromValue<'a> for GLFormat { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -537,7 +534,7 @@ impl FromGlib for GLQueryType { impl StaticType for GLQueryType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_gl_query_type_get_type()) } } } @@ -556,7 +553,7 @@ impl glib::value::ValueType for GLQueryType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for GLQueryType { +unsafe impl<'a> glib::value::FromValue<'a> for GLQueryType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -634,9 +631,9 @@ impl FromGlib for GLSLError { } } -impl ErrorDomain for GLSLError { +impl glib::error::ErrorDomain for GLSLError { #[inline] - fn domain() -> Quark { + fn domain() -> glib::Quark { skip_assert_initialized!(); unsafe { from_glib(ffi::gst_glsl_error_quark()) } @@ -659,7 +656,7 @@ impl ErrorDomain for GLSLError { impl StaticType for GLSLError { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_glsl_error_get_type()) } } } @@ -678,7 +675,7 @@ impl glib::value::ValueType for GLSLError { type Type = Self; } -unsafe impl<'a> FromValue<'a> for GLSLError { +unsafe impl<'a> glib::value::FromValue<'a> for GLSLError { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -860,7 +857,7 @@ impl FromGlib for GLSLVersion { impl StaticType for GLSLVersion { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_glsl_version_get_type()) } } } @@ -879,7 +876,7 @@ impl glib::value::ValueType for GLSLVersion { type Type = Self; } -unsafe impl<'a> FromValue<'a> for GLSLVersion { +unsafe impl<'a> glib::value::FromValue<'a> for GLSLVersion { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -959,7 +956,7 @@ impl FromGlib for GLStereoDownmix { impl StaticType for GLStereoDownmix { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_gl_stereo_downmix_get_type()) } } } @@ -978,7 +975,7 @@ impl glib::value::ValueType for GLStereoDownmix { type Type = Self; } -unsafe impl<'a> FromValue<'a> for GLStereoDownmix { +unsafe impl<'a> glib::value::FromValue<'a> for GLStereoDownmix { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1099,7 +1096,7 @@ impl FromGlib for GLTextureTarget { impl StaticType for GLTextureTarget { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_gl_texture_target_get_type()) } } } @@ -1118,7 +1115,7 @@ impl glib::value::ValueType for GLTextureTarget { type Type = Self; } -unsafe impl<'a> FromValue<'a> for GLTextureTarget { +unsafe impl<'a> glib::value::FromValue<'a> for GLTextureTarget { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1206,7 +1203,7 @@ impl FromGlib for GLUploadReturn { impl StaticType for GLUploadReturn { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_gl_upload_return_get_type()) } } } @@ -1225,7 +1222,7 @@ impl glib::value::ValueType for GLUploadReturn { type Type = Self; } -unsafe impl<'a> FromValue<'a> for GLUploadReturn { +unsafe impl<'a> glib::value::FromValue<'a> for GLUploadReturn { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1303,9 +1300,9 @@ impl FromGlib for GLWindowError { } } -impl ErrorDomain for GLWindowError { +impl glib::error::ErrorDomain for GLWindowError { #[inline] - fn domain() -> Quark { + fn domain() -> glib::Quark { skip_assert_initialized!(); unsafe { from_glib(ffi::gst_gl_window_error_quark()) } @@ -1329,7 +1326,7 @@ impl ErrorDomain for GLWindowError { impl StaticType for GLWindowError { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_gl_window_error_get_type()) } } } @@ -1348,7 +1345,7 @@ impl glib::value::ValueType for GLWindowError { type Type = Self; } -unsafe impl<'a> FromValue<'a> for GLWindowError { +unsafe impl<'a> glib::value::FromValue<'a> for GLWindowError { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer-gl/src/auto/flags.rs b/gstreamer-gl/src/auto/flags.rs index 622b804c4..8260bcd76 100644 --- a/gstreamer-gl/src/auto/flags.rs +++ b/gstreamer-gl/src/auto/flags.rs @@ -3,11 +3,11 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -use bitflags::bitflags; -use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type}; +use glib::{bitflags::bitflags, prelude::*, translate::*}; use std::fmt; bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstGLAPI")] pub struct GLAPI: u32 { #[doc(alias = "GST_GL_API_OPENGL")] @@ -64,7 +64,7 @@ impl FromGlib for GLAPI { impl StaticType for GLAPI { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_gl_api_get_type()) } } } @@ -83,7 +83,7 @@ impl glib::value::ValueType for GLAPI { type Type = Self; } -unsafe impl<'a> FromValue<'a> for GLAPI { +unsafe impl<'a> glib::value::FromValue<'a> for GLAPI { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -120,6 +120,7 @@ impl From for glib::Value { #[cfg(feature = "v1_20")] bitflags! { #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstGLConfigSurfaceType")] pub struct GLConfigSurfaceType: u32 { #[doc(alias = "GST_GL_CONFIG_SURFACE_TYPE_NONE")] @@ -171,7 +172,7 @@ impl FromGlib for GLConfigSurfaceType { #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for GLConfigSurfaceType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_gl_config_surface_type_get_type()) } } } @@ -196,7 +197,7 @@ impl glib::value::ValueType for GLConfigSurfaceType { #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] -unsafe impl<'a> FromValue<'a> for GLConfigSurfaceType { +unsafe impl<'a> glib::value::FromValue<'a> for GLConfigSurfaceType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -235,6 +236,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstGLDisplayType")] pub struct GLDisplayType: u32 { #[doc(alias = "GST_GL_DISPLAY_TYPE_X11")] @@ -293,7 +295,7 @@ impl FromGlib for GLDisplayType { impl StaticType for GLDisplayType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_gl_display_type_get_type()) } } } @@ -312,7 +314,7 @@ impl glib::value::ValueType for GLDisplayType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for GLDisplayType { +unsafe impl<'a> glib::value::FromValue<'a> for GLDisplayType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -347,6 +349,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstGLPlatform")] pub struct GLPlatform: u32 { #[doc(alias = "GST_GL_PLATFORM_EGL")] @@ -409,7 +412,7 @@ impl FromGlib for GLPlatform { impl StaticType for GLPlatform { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_gl_platform_get_type()) } } } @@ -428,7 +431,7 @@ impl glib::value::ValueType for GLPlatform { type Type = Self; } -unsafe impl<'a> FromValue<'a> for GLPlatform { +unsafe impl<'a> glib::value::FromValue<'a> for GLPlatform { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -463,6 +466,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstGLSLProfile")] pub struct GLSLProfile: u32 { #[doc(alias = "GST_GLSL_PROFILE_ES")] @@ -510,7 +514,7 @@ impl FromGlib for GLSLProfile { impl StaticType for GLSLProfile { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_glsl_profile_get_type()) } } } @@ -529,7 +533,7 @@ impl glib::value::ValueType for GLSLProfile { type Type = Self; } -unsafe impl<'a> FromValue<'a> for GLSLProfile { +unsafe impl<'a> glib::value::FromValue<'a> for GLSLProfile { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer-gl/src/auto/gl_base_filter.rs b/gstreamer-gl/src/auto/gl_base_filter.rs index ee3aa80d2..b3522d61a 100644 --- a/gstreamer-gl/src/auto/gl_base_filter.rs +++ b/gstreamer-gl/src/auto/gl_base_filter.rs @@ -57,7 +57,7 @@ pub trait GLBaseFilterExt: IsA + sealed::Sealed + 'static { } fn context(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "context") + ObjectExt::property(self.as_ref(), "context") } #[doc(alias = "context")] diff --git a/gstreamer-gl/src/auto/gl_base_src.rs b/gstreamer-gl/src/auto/gl_base_src.rs index c3ae3d7f7..c412e8d31 100644 --- a/gstreamer-gl/src/auto/gl_base_src.rs +++ b/gstreamer-gl/src/auto/gl_base_src.rs @@ -34,12 +34,12 @@ mod sealed { pub trait GLBaseSrcExt: IsA + sealed::Sealed + 'static { #[doc(alias = "timestamp-offset")] fn timestamp_offset(&self) -> i64 { - glib::ObjectExt::property(self.as_ref(), "timestamp-offset") + ObjectExt::property(self.as_ref(), "timestamp-offset") } #[doc(alias = "timestamp-offset")] fn set_timestamp_offset(&self, timestamp_offset: i64) { - glib::ObjectExt::set_property(self.as_ref(), "timestamp-offset", timestamp_offset) + ObjectExt::set_property(self.as_ref(), "timestamp-offset", timestamp_offset) } #[doc(alias = "timestamp-offset")] diff --git a/gstreamer-gl/src/auto/gl_overlay_compositor.rs b/gstreamer-gl/src/auto/gl_overlay_compositor.rs index a17baa1a5..cb7e77eb2 100644 --- a/gstreamer-gl/src/auto/gl_overlay_compositor.rs +++ b/gstreamer-gl/src/auto/gl_overlay_compositor.rs @@ -49,13 +49,13 @@ impl GLOverlayCompositor { #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn is_yinvert(&self) -> bool { - glib::ObjectExt::property(self, "yinvert") + ObjectExt::property(self, "yinvert") } #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] pub fn set_yinvert(&self, yinvert: bool) { - glib::ObjectExt::set_property(self, "yinvert", yinvert) + 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 7f725c0ab..e0a99c7a6 100644 --- a/gstreamer-gl/src/auto/gl_view_convert.rs +++ b/gstreamer-gl/src/auto/gl_view_convert.rs @@ -91,52 +91,52 @@ impl GLViewConvert { #[doc(alias = "downmix-mode")] pub fn downmix_mode(&self) -> GLStereoDownmix { - glib::ObjectExt::property(self, "downmix-mode") + ObjectExt::property(self, "downmix-mode") } #[doc(alias = "downmix-mode")] pub fn set_downmix_mode(&self, downmix_mode: GLStereoDownmix) { - glib::ObjectExt::set_property(self, "downmix-mode", downmix_mode) + ObjectExt::set_property(self, "downmix-mode", downmix_mode) } #[doc(alias = "input-flags-override")] pub fn input_flags_override(&self) -> gst_video::VideoMultiviewFlags { - glib::ObjectExt::property(self, "input-flags-override") + ObjectExt::property(self, "input-flags-override") } #[doc(alias = "input-flags-override")] pub fn set_input_flags_override(&self, input_flags_override: gst_video::VideoMultiviewFlags) { - glib::ObjectExt::set_property(self, "input-flags-override", input_flags_override) + ObjectExt::set_property(self, "input-flags-override", input_flags_override) } #[doc(alias = "input-mode-override")] pub fn input_mode_override(&self) -> gst_video::VideoMultiviewMode { - glib::ObjectExt::property(self, "input-mode-override") + ObjectExt::property(self, "input-mode-override") } #[doc(alias = "input-mode-override")] pub fn set_input_mode_override(&self, input_mode_override: gst_video::VideoMultiviewMode) { - glib::ObjectExt::set_property(self, "input-mode-override", input_mode_override) + ObjectExt::set_property(self, "input-mode-override", input_mode_override) } #[doc(alias = "output-flags-override")] pub fn output_flags_override(&self) -> gst_video::VideoMultiviewFlags { - glib::ObjectExt::property(self, "output-flags-override") + ObjectExt::property(self, "output-flags-override") } #[doc(alias = "output-flags-override")] pub fn set_output_flags_override(&self, output_flags_override: gst_video::VideoMultiviewFlags) { - glib::ObjectExt::set_property(self, "output-flags-override", output_flags_override) + ObjectExt::set_property(self, "output-flags-override", output_flags_override) } #[doc(alias = "output-mode-override")] pub fn output_mode_override(&self) -> gst_video::VideoMultiviewMode { - glib::ObjectExt::property(self, "output-mode-override") + ObjectExt::property(self, "output-mode-override") } #[doc(alias = "output-mode-override")] pub fn set_output_mode_override(&self, output_mode_override: gst_video::VideoMultiviewMode) { - glib::ObjectExt::set_property(self, "output-mode-override", output_mode_override) + 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 6c0d75e68..7942439dc 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 @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-gl/sys/src/auto/versions.txt b/gstreamer-gl/sys/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-gl/sys/src/auto/versions.txt +++ b/gstreamer-gl/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-gl/wayland/src/auto/versions.txt b/gstreamer-gl/wayland/src/auto/versions.txt index 6c0d75e68..7942439dc 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 @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-gl/wayland/sys/src/auto/versions.txt b/gstreamer-gl/wayland/sys/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-gl/wayland/sys/src/auto/versions.txt +++ b/gstreamer-gl/wayland/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-gl/x11/src/auto/versions.txt b/gstreamer-gl/x11/src/auto/versions.txt index 6c0d75e68..7942439dc 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 @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-gl/x11/sys/src/auto/versions.txt b/gstreamer-gl/x11/sys/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-gl/x11/sys/src/auto/versions.txt +++ b/gstreamer-gl/x11/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-mpegts/src/auto/versions.txt b/gstreamer-mpegts/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-mpegts/src/auto/versions.txt +++ b/gstreamer-mpegts/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-mpegts/sys/src/auto/versions.txt b/gstreamer-mpegts/sys/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-mpegts/sys/src/auto/versions.txt +++ b/gstreamer-mpegts/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-net/src/auto/net_client_clock.rs b/gstreamer-net/src/auto/net_client_clock.rs index 077aa6955..1150229cb 100644 --- a/gstreamer-net/src/auto/net_client_clock.rs +++ b/gstreamer-net/src/auto/net_client_clock.rs @@ -40,67 +40,67 @@ impl NetClientClock { } pub fn address(&self) -> Option { - glib::ObjectExt::property(self, "address") + ObjectExt::property(self, "address") } pub fn set_address(&self, address: Option<&str>) { - glib::ObjectExt::set_property(self, "address", address) + ObjectExt::set_property(self, "address", address) } #[doc(alias = "base-time")] pub fn base_time(&self) -> u64 { - glib::ObjectExt::property(self, "base-time") + ObjectExt::property(self, "base-time") } pub fn bus(&self) -> Option { - glib::ObjectExt::property(self, "bus") + ObjectExt::property(self, "bus") } pub fn set_bus>(&self, bus: Option<&P>) { - glib::ObjectExt::set_property(self, "bus", bus) + ObjectExt::set_property(self, "bus", bus) } #[doc(alias = "internal-clock")] pub fn internal_clock(&self) -> Option { - glib::ObjectExt::property(self, "internal-clock") + ObjectExt::property(self, "internal-clock") } #[doc(alias = "minimum-update-interval")] pub fn minimum_update_interval(&self) -> u64 { - glib::ObjectExt::property(self, "minimum-update-interval") + ObjectExt::property(self, "minimum-update-interval") } #[doc(alias = "minimum-update-interval")] pub fn set_minimum_update_interval(&self, minimum_update_interval: u64) { - glib::ObjectExt::set_property(self, "minimum-update-interval", minimum_update_interval) + ObjectExt::set_property(self, "minimum-update-interval", minimum_update_interval) } pub fn port(&self) -> i32 { - glib::ObjectExt::property(self, "port") + ObjectExt::property(self, "port") } pub fn set_port(&self, port: i32) { - glib::ObjectExt::set_property(self, "port", port) + ObjectExt::set_property(self, "port", port) } #[doc(alias = "qos-dscp")] pub fn qos_dscp(&self) -> i32 { - glib::ObjectExt::property(self, "qos-dscp") + ObjectExt::property(self, "qos-dscp") } #[doc(alias = "qos-dscp")] pub fn set_qos_dscp(&self, qos_dscp: i32) { - glib::ObjectExt::set_property(self, "qos-dscp", qos_dscp) + ObjectExt::set_property(self, "qos-dscp", qos_dscp) } #[doc(alias = "round-trip-limit")] pub fn round_trip_limit(&self) -> u64 { - glib::ObjectExt::property(self, "round-trip-limit") + ObjectExt::property(self, "round-trip-limit") } #[doc(alias = "round-trip-limit")] pub fn set_round_trip_limit(&self, round_trip_limit: u64) { - glib::ObjectExt::set_property(self, "round-trip-limit", round_trip_limit) + 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 533b19a10..9d3fc0d74 100644 --- a/gstreamer-net/src/auto/net_time_provider.rs +++ b/gstreamer-net/src/auto/net_time_provider.rs @@ -38,33 +38,33 @@ impl NetTimeProvider { } pub fn is_active(&self) -> bool { - glib::ObjectExt::property(self, "active") + ObjectExt::property(self, "active") } pub fn set_active(&self, active: bool) { - glib::ObjectExt::set_property(self, "active", active) + ObjectExt::set_property(self, "active", active) } pub fn address(&self) -> Option { - glib::ObjectExt::property(self, "address") + ObjectExt::property(self, "address") } pub fn clock(&self) -> Option { - glib::ObjectExt::property(self, "clock") + ObjectExt::property(self, "clock") } pub fn port(&self) -> i32 { - glib::ObjectExt::property(self, "port") + ObjectExt::property(self, "port") } #[doc(alias = "qos-dscp")] pub fn qos_dscp(&self) -> i32 { - glib::ObjectExt::property(self, "qos-dscp") + ObjectExt::property(self, "qos-dscp") } #[doc(alias = "qos-dscp")] pub fn set_qos_dscp(&self, qos_dscp: i32) { - glib::ObjectExt::set_property(self, "qos-dscp", qos_dscp) + 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 3ab1e6c3a..32588d798 100644 --- a/gstreamer-net/src/auto/ptp_clock.rs +++ b/gstreamer-net/src/auto/ptp_clock.rs @@ -30,22 +30,22 @@ impl PtpClock { } pub fn domain(&self) -> u32 { - glib::ObjectExt::property(self, "domain") + ObjectExt::property(self, "domain") } #[doc(alias = "grandmaster-clock-id")] pub fn grandmaster_clock_id(&self) -> u64 { - glib::ObjectExt::property(self, "grandmaster-clock-id") + ObjectExt::property(self, "grandmaster-clock-id") } #[doc(alias = "internal-clock")] pub fn internal_clock(&self) -> Option { - glib::ObjectExt::property(self, "internal-clock") + ObjectExt::property(self, "internal-clock") } #[doc(alias = "master-clock-id")] pub fn master_clock_id(&self) -> u64 { - glib::ObjectExt::property(self, "master-clock-id") + 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 6c0d75e68..7942439dc 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 @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-net/sys/src/auto/versions.txt b/gstreamer-net/sys/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-net/sys/src/auto/versions.txt +++ b/gstreamer-net/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-pbutils/src/auto/audio_visualizer.rs b/gstreamer-pbutils/src/auto/audio_visualizer.rs index 54f98f357..937ffa877 100644 --- a/gstreamer-pbutils/src/auto/audio_visualizer.rs +++ b/gstreamer-pbutils/src/auto/audio_visualizer.rs @@ -35,20 +35,20 @@ mod sealed { pub trait AudioVisualizerExt: IsA + sealed::Sealed + 'static { #[doc(alias = "shade-amount")] fn shade_amount(&self) -> u32 { - glib::ObjectExt::property(self.as_ref(), "shade-amount") + ObjectExt::property(self.as_ref(), "shade-amount") } #[doc(alias = "shade-amount")] fn set_shade_amount(&self, shade_amount: u32) { - glib::ObjectExt::set_property(self.as_ref(), "shade-amount", shade_amount) + ObjectExt::set_property(self.as_ref(), "shade-amount", shade_amount) } fn shader(&self) -> AudioVisualizerShader { - glib::ObjectExt::property(self.as_ref(), "shader") + ObjectExt::property(self.as_ref(), "shader") } fn set_shader(&self, shader: AudioVisualizerShader) { - glib::ObjectExt::set_property(self.as_ref(), "shader", shader) + ObjectExt::set_property(self.as_ref(), "shader", shader) } #[doc(alias = "shade-amount")] diff --git a/gstreamer-pbutils/src/auto/discoverer.rs b/gstreamer-pbutils/src/auto/discoverer.rs index 093806c7f..99af2bb25 100644 --- a/gstreamer-pbutils/src/auto/discoverer.rs +++ b/gstreamer-pbutils/src/auto/discoverer.rs @@ -80,14 +80,14 @@ impl Discoverer { #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "use-cache")] pub fn uses_cache(&self) -> bool { - glib::ObjectExt::property(self, "use-cache") + ObjectExt::property(self, "use-cache") } #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "use-cache")] pub fn set_use_cache(&self, use_cache: bool) { - glib::ObjectExt::set_property(self, "use-cache", use_cache) + ObjectExt::set_property(self, "use-cache", use_cache) } #[doc(alias = "discovered")] diff --git a/gstreamer-pbutils/src/auto/enums.rs b/gstreamer-pbutils/src/auto/enums.rs index 0fee34f5a..79396c2a4 100644 --- a/gstreamer-pbutils/src/auto/enums.rs +++ b/gstreamer-pbutils/src/auto/enums.rs @@ -3,7 +3,7 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type}; +use glib::{prelude::*, translate::*}; #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] @@ -79,7 +79,7 @@ impl FromGlib for AudioVisualizerShader { impl StaticType for AudioVisualizerShader { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_audio_visualizer_shader_get_type()) } } } @@ -98,7 +98,7 @@ impl glib::value::ValueType for AudioVisualizerShader { type Type = Self; } -unsafe impl<'a> FromValue<'a> for AudioVisualizerShader { +unsafe impl<'a> glib::value::FromValue<'a> for AudioVisualizerShader { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -190,7 +190,7 @@ impl FromGlib for DiscovererResult { impl StaticType for DiscovererResult { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_discoverer_result_get_type()) } } } @@ -209,7 +209,7 @@ impl glib::value::ValueType for DiscovererResult { type Type = Self; } -unsafe impl<'a> FromValue<'a> for DiscovererResult { +unsafe impl<'a> glib::value::FromValue<'a> for DiscovererResult { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer-pbutils/src/auto/flags.rs b/gstreamer-pbutils/src/auto/flags.rs index 83786e06a..6bfd2b94d 100644 --- a/gstreamer-pbutils/src/auto/flags.rs +++ b/gstreamer-pbutils/src/auto/flags.rs @@ -3,10 +3,10 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -use bitflags::bitflags; -use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type}; +use glib::{bitflags::bitflags, prelude::*, translate::*}; bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstDiscovererSerializeFlags")] pub struct DiscovererSerializeFlags: u32 { #[doc(alias = "GST_DISCOVERER_SERIALIZE_CAPS")] @@ -39,7 +39,7 @@ impl FromGlib for DiscovererSerializeFlags { impl StaticType for DiscovererSerializeFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_discoverer_serialize_flags_get_type()) } } } @@ -58,7 +58,7 @@ impl glib::value::ValueType for DiscovererSerializeFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for DiscovererSerializeFlags { +unsafe impl<'a> glib::value::FromValue<'a> for DiscovererSerializeFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -95,6 +95,7 @@ impl From for glib::Value { #[cfg(feature = "v1_20")] bitflags! { #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstPbUtilsCapsDescriptionFlags")] pub struct PbUtilsCapsDescriptionFlags: u32 { #[doc(alias = "GST_PBUTILS_CAPS_DESCRIPTION_FLAG_CONTAINER")] @@ -145,7 +146,7 @@ impl FromGlib for PbUtilsCapsDescriptionFla #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for PbUtilsCapsDescriptionFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_pb_utils_caps_description_flags_get_type()) } } } @@ -170,7 +171,7 @@ impl glib::value::ValueType for PbUtilsCapsDescriptionFlags { #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] -unsafe impl<'a> FromValue<'a> for PbUtilsCapsDescriptionFlags { +unsafe impl<'a> glib::value::FromValue<'a> for PbUtilsCapsDescriptionFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer-pbutils/src/auto/versions.txt b/gstreamer-pbutils/src/auto/versions.txt index 6c0d75e68..7942439dc 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 @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-pbutils/sys/src/auto/versions.txt b/gstreamer-pbutils/sys/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-pbutils/sys/src/auto/versions.txt +++ b/gstreamer-pbutils/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-play/src/auto/enums.rs b/gstreamer-play/src/auto/enums.rs index 4d2a3f8c6..27a00b087 100644 --- a/gstreamer-play/src/auto/enums.rs +++ b/gstreamer-play/src/auto/enums.rs @@ -4,10 +4,7 @@ // DO NOT EDIT use crate::PlayMediaInfo; -use glib::{ - error::ErrorDomain, translate::*, value::FromValue, value::ToValue, GStr, Quark, StaticType, - Type, -}; +use glib::{prelude::*, translate::*, GStr}; use std::{fmt, mem, ptr}; #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] @@ -79,7 +76,7 @@ impl FromGlib for PlayColorBalanceType { impl StaticType for PlayColorBalanceType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_play_color_balance_type_get_type()) } } } @@ -98,7 +95,7 @@ impl glib::value::ValueType for PlayColorBalanceType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for PlayColorBalanceType { +unsafe impl<'a> glib::value::FromValue<'a> for PlayColorBalanceType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -187,9 +184,9 @@ impl FromGlib for PlayError { } } -impl ErrorDomain for PlayError { +impl glib::error::ErrorDomain for PlayError { #[inline] - fn domain() -> Quark { + fn domain() -> glib::Quark { skip_assert_initialized!(); unsafe { from_glib(ffi::gst_play_error_quark()) } @@ -213,7 +210,7 @@ impl ErrorDomain for PlayError { impl StaticType for PlayError { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_play_error_get_type()) } } } @@ -232,7 +229,7 @@ impl glib::value::ValueType for PlayError { type Type = Self; } -unsafe impl<'a> FromValue<'a> for PlayError { +unsafe impl<'a> glib::value::FromValue<'a> for PlayError { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -495,7 +492,7 @@ impl FromGlib for PlayMessage { impl StaticType for PlayMessage { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_play_message_get_type()) } } } @@ -514,7 +511,7 @@ impl glib::value::ValueType for PlayMessage { type Type = Self; } -unsafe impl<'a> FromValue<'a> for PlayMessage { +unsafe impl<'a> glib::value::FromValue<'a> for PlayMessage { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -669,7 +666,7 @@ impl FromGlib for PlayState { impl StaticType for PlayState { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_play_state_get_type()) } } } @@ -688,7 +685,7 @@ impl glib::value::ValueType for PlayState { type Type = Self; } -unsafe impl<'a> FromValue<'a> for PlayState { +unsafe impl<'a> glib::value::FromValue<'a> for PlayState { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer-play/src/auto/play.rs b/gstreamer-play/src/auto/play.rs index 30e38d245..6280d3292 100644 --- a/gstreamer-play/src/auto/play.rs +++ b/gstreamer-play/src/auto/play.rs @@ -328,26 +328,26 @@ impl Play { } pub fn suburi(&self) -> Option { - glib::ObjectExt::property(self, "suburi") + ObjectExt::property(self, "suburi") } pub fn set_suburi(&self, suburi: Option<&str>) { - glib::ObjectExt::set_property(self, "suburi", suburi) + ObjectExt::set_property(self, "suburi", suburi) } #[doc(alias = "video-multiview-flags")] pub fn video_multiview_flags(&self) -> gst_video::VideoMultiviewFlags { - glib::ObjectExt::property(self, "video-multiview-flags") + ObjectExt::property(self, "video-multiview-flags") } #[doc(alias = "video-multiview-flags")] pub fn set_video_multiview_flags(&self, video_multiview_flags: gst_video::VideoMultiviewFlags) { - glib::ObjectExt::set_property(self, "video-multiview-flags", video_multiview_flags) + ObjectExt::set_property(self, "video-multiview-flags", video_multiview_flags) } #[doc(alias = "video-multiview-mode")] pub fn video_multiview_mode(&self) -> gst_video::VideoMultiviewFramePacking { - glib::ObjectExt::property(self, "video-multiview-mode") + ObjectExt::property(self, "video-multiview-mode") } #[doc(alias = "video-multiview-mode")] @@ -355,17 +355,17 @@ impl Play { &self, video_multiview_mode: gst_video::VideoMultiviewFramePacking, ) { - glib::ObjectExt::set_property(self, "video-multiview-mode", video_multiview_mode) + ObjectExt::set_property(self, "video-multiview-mode", video_multiview_mode) } #[doc(alias = "video-renderer")] pub fn video_renderer(&self) -> Option { - glib::ObjectExt::property(self, "video-renderer") + ObjectExt::property(self, "video-renderer") } #[doc(alias = "video-renderer")] pub fn set_video_renderer>(&self, video_renderer: Option<&P>) { - glib::ObjectExt::set_property(self, "video-renderer", video_renderer) + ObjectExt::set_property(self, "video-renderer", video_renderer) } #[doc(alias = "gst_play_get_audio_streams")] diff --git a/gstreamer-play/src/auto/play_video_overlay_video_renderer.rs b/gstreamer-play/src/auto/play_video_overlay_video_renderer.rs index 04fcbcd4e..816a24362 100644 --- a/gstreamer-play/src/auto/play_video_overlay_video_renderer.rs +++ b/gstreamer-play/src/auto/play_video_overlay_video_renderer.rs @@ -67,12 +67,12 @@ impl PlayVideoOverlayVideoRenderer { #[doc(alias = "video-sink")] pub fn video_sink(&self) -> Option { - glib::ObjectExt::property(self, "video-sink") + ObjectExt::property(self, "video-sink") } #[doc(alias = "video-sink")] pub fn set_video_sink>(&self, video_sink: Option<&P>) { - glib::ObjectExt::set_property(self, "video-sink", video_sink) + ObjectExt::set_property(self, "video-sink", video_sink) } #[doc(alias = "video-sink")] diff --git a/gstreamer-play/src/auto/versions.txt b/gstreamer-play/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-play/src/auto/versions.txt +++ b/gstreamer-play/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-play/sys/src/auto/versions.txt b/gstreamer-play/sys/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-play/sys/src/auto/versions.txt +++ b/gstreamer-play/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-player/src/auto/enums.rs b/gstreamer-player/src/auto/enums.rs index 21960eecc..6db25385d 100644 --- a/gstreamer-player/src/auto/enums.rs +++ b/gstreamer-player/src/auto/enums.rs @@ -3,10 +3,7 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -use glib::{ - error::ErrorDomain, translate::*, value::FromValue, value::ToValue, GStr, Quark, StaticType, - Type, -}; +use glib::{prelude::*, translate::*, GStr}; use std::fmt; #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] @@ -78,7 +75,7 @@ impl FromGlib for PlayerColorBalanceType { impl StaticType for PlayerColorBalanceType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_player_color_balance_type_get_type()) } } } @@ -97,7 +94,7 @@ impl glib::value::ValueType for PlayerColorBalanceType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for PlayerColorBalanceType { +unsafe impl<'a> glib::value::FromValue<'a> for PlayerColorBalanceType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -186,9 +183,9 @@ impl FromGlib for PlayerError { } } -impl ErrorDomain for PlayerError { +impl glib::error::ErrorDomain for PlayerError { #[inline] - fn domain() -> Quark { + fn domain() -> glib::Quark { skip_assert_initialized!(); unsafe { from_glib(ffi::gst_player_error_quark()) } @@ -212,7 +209,7 @@ impl ErrorDomain for PlayerError { impl StaticType for PlayerError { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_player_error_get_type()) } } } @@ -231,7 +228,7 @@ impl glib::value::ValueType for PlayerError { type Type = Self; } -unsafe impl<'a> FromValue<'a> for PlayerError { +unsafe impl<'a> glib::value::FromValue<'a> for PlayerError { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -386,7 +383,7 @@ impl FromGlib for PlayerState { impl StaticType for PlayerState { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_player_state_get_type()) } } } @@ -405,7 +402,7 @@ impl glib::value::ValueType for PlayerState { type Type = Self; } -unsafe impl<'a> FromValue<'a> for PlayerState { +unsafe impl<'a> glib::value::FromValue<'a> for PlayerState { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer-player/src/auto/player.rs b/gstreamer-player/src/auto/player.rs index 58a875e78..61ed98b2c 100644 --- a/gstreamer-player/src/auto/player.rs +++ b/gstreamer-player/src/auto/player.rs @@ -338,26 +338,26 @@ impl Player { } pub fn suburi(&self) -> Option { - glib::ObjectExt::property(self, "suburi") + ObjectExt::property(self, "suburi") } pub fn set_suburi(&self, suburi: Option<&str>) { - glib::ObjectExt::set_property(self, "suburi", suburi) + ObjectExt::set_property(self, "suburi", suburi) } #[doc(alias = "video-multiview-flags")] pub fn video_multiview_flags(&self) -> gst_video::VideoMultiviewFlags { - glib::ObjectExt::property(self, "video-multiview-flags") + ObjectExt::property(self, "video-multiview-flags") } #[doc(alias = "video-multiview-flags")] pub fn set_video_multiview_flags(&self, video_multiview_flags: gst_video::VideoMultiviewFlags) { - glib::ObjectExt::set_property(self, "video-multiview-flags", video_multiview_flags) + ObjectExt::set_property(self, "video-multiview-flags", video_multiview_flags) } #[doc(alias = "video-multiview-mode")] pub fn video_multiview_mode(&self) -> gst_video::VideoMultiviewFramePacking { - glib::ObjectExt::property(self, "video-multiview-mode") + ObjectExt::property(self, "video-multiview-mode") } #[doc(alias = "video-multiview-mode")] @@ -365,12 +365,12 @@ impl Player { &self, video_multiview_mode: gst_video::VideoMultiviewFramePacking, ) { - glib::ObjectExt::set_property(self, "video-multiview-mode", video_multiview_mode) + ObjectExt::set_property(self, "video-multiview-mode", video_multiview_mode) } #[doc(alias = "video-renderer")] pub fn video_renderer(&self) -> Option { - glib::ObjectExt::property(self, "video-renderer") + 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 8b81b832b..33033b812 100644 --- a/gstreamer-player/src/auto/player_gmain_context_signal_dispatcher.rs +++ b/gstreamer-player/src/auto/player_gmain_context_signal_dispatcher.rs @@ -18,7 +18,7 @@ glib::wrapper! { impl PlayerGMainContextSignalDispatcher { #[doc(alias = "application-context")] pub fn application_context(&self) -> Option { - glib::ObjectExt::property(self, "application-context") + 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 8a0ee7e2b..39430c5b8 100644 --- a/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs +++ b/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs @@ -67,12 +67,12 @@ impl PlayerVideoOverlayVideoRenderer { #[doc(alias = "video-sink")] pub fn video_sink(&self) -> Option { - glib::ObjectExt::property(self, "video-sink") + ObjectExt::property(self, "video-sink") } #[doc(alias = "video-sink")] pub fn set_video_sink>(&self, video_sink: Option<&P>) { - glib::ObjectExt::set_property(self, "video-sink", video_sink) + 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 6c0d75e68..7942439dc 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 @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-player/sys/src/auto/versions.txt b/gstreamer-player/sys/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-player/sys/src/auto/versions.txt +++ b/gstreamer-player/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-rtp/src/auto/enums.rs b/gstreamer-rtp/src/auto/enums.rs index 9c823619b..eccdd4fa0 100644 --- a/gstreamer-rtp/src/auto/enums.rs +++ b/gstreamer-rtp/src/auto/enums.rs @@ -3,7 +3,7 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type}; +use glib::{prelude::*, translate::*}; #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] @@ -75,7 +75,7 @@ impl FromGlib for RTCPFBType { impl StaticType for RTCPFBType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtcpfb_type_get_type()) } } } @@ -94,7 +94,7 @@ impl glib::value::ValueType for RTCPFBType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for RTCPFBType { +unsafe impl<'a> glib::value::FromValue<'a> for RTCPFBType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -256,7 +256,7 @@ impl FromGlib for RTCPSDESType { impl StaticType for RTCPSDESType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtcpsdes_type_get_type()) } } } @@ -275,7 +275,7 @@ impl glib::value::ValueType for RTCPSDESType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for RTCPSDESType { +unsafe impl<'a> glib::value::FromValue<'a> for RTCPSDESType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -379,7 +379,7 @@ impl FromGlib for RTCPType { impl StaticType for RTCPType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtcp_type_get_type()) } } } @@ -398,7 +398,7 @@ impl glib::value::ValueType for RTCPType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for RTCPType { +unsafe impl<'a> glib::value::FromValue<'a> for RTCPType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -506,7 +506,7 @@ impl FromGlib for RTCPXRType { #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl StaticType for RTCPXRType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtcpxr_type_get_type()) } } } @@ -531,7 +531,7 @@ impl glib::value::ValueType for RTCPXRType { #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] -unsafe impl<'a> FromValue<'a> for RTCPXRType { +unsafe impl<'a> glib::value::FromValue<'a> for RTCPXRType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -705,7 +705,7 @@ impl FromGlib for RTPPayload { impl StaticType for RTPPayload { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtp_payload_get_type()) } } } @@ -724,7 +724,7 @@ impl glib::value::ValueType for RTPPayload { type Type = Self; } -unsafe impl<'a> FromValue<'a> for RTPPayload { +unsafe impl<'a> glib::value::FromValue<'a> for RTPPayload { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -812,7 +812,7 @@ impl FromGlib for RTPProfile { impl StaticType for RTPProfile { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtp_profile_get_type()) } } } @@ -831,7 +831,7 @@ impl glib::value::ValueType for RTPProfile { type Type = Self; } -unsafe impl<'a> FromValue<'a> for RTPProfile { +unsafe impl<'a> glib::value::FromValue<'a> for RTPProfile { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer-rtp/src/auto/flags.rs b/gstreamer-rtp/src/auto/flags.rs index 821c71883..f386de539 100644 --- a/gstreamer-rtp/src/auto/flags.rs +++ b/gstreamer-rtp/src/auto/flags.rs @@ -3,10 +3,10 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -use bitflags::bitflags; -use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type}; +use glib::{bitflags::bitflags, prelude::*, translate::*}; bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstRTPBufferFlags")] pub struct RTPBufferFlags: u32 { #[doc(alias = "GST_RTP_BUFFER_FLAG_RETRANSMISSION")] @@ -37,7 +37,7 @@ impl FromGlib for RTPBufferFlags { impl StaticType for RTPBufferFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtp_buffer_flags_get_type()) } } } @@ -56,7 +56,7 @@ impl glib::value::ValueType for RTPBufferFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for RTPBufferFlags { +unsafe impl<'a> glib::value::FromValue<'a> for RTPBufferFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -91,6 +91,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstRTPBufferMapFlags")] pub struct RTPBufferMapFlags: u32 { #[doc(alias = "GST_RTP_BUFFER_MAP_FLAG_SKIP_PADDING")] @@ -119,7 +120,7 @@ impl FromGlib for RTPBufferMapFlags { impl StaticType for RTPBufferMapFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtp_buffer_map_flags_get_type()) } } } @@ -138,7 +139,7 @@ impl glib::value::ValueType for RTPBufferMapFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for RTPBufferMapFlags { +unsafe impl<'a> glib::value::FromValue<'a> for RTPBufferMapFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -175,6 +176,7 @@ impl From for glib::Value { #[cfg(feature = "v1_20")] bitflags! { #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstRTPHeaderExtensionDirection")] pub struct RTPHeaderExtensionDirection: u32 { #[doc(alias = "GST_RTP_HEADER_EXTENSION_DIRECTION_INACTIVE")] @@ -217,7 +219,7 @@ impl FromGlib for RTPHeaderExtensionDirecti #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for RTPHeaderExtensionDirection { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtp_header_extension_direction_get_type()) } } } @@ -242,7 +244,7 @@ impl glib::value::ValueType for RTPHeaderExtensionDirection { #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] -unsafe impl<'a> FromValue<'a> for RTPHeaderExtensionDirection { +unsafe impl<'a> glib::value::FromValue<'a> for RTPHeaderExtensionDirection { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -283,6 +285,7 @@ impl From for glib::Value { #[cfg(feature = "v1_20")] bitflags! { #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstRTPHeaderExtensionFlags")] pub struct RTPHeaderExtensionFlags: u32 { #[doc(alias = "GST_RTP_HEADER_EXTENSION_ONE_BYTE")] @@ -319,7 +322,7 @@ impl FromGlib for RTPHeaderExtensionFlags { #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for RTPHeaderExtensionFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtp_header_extension_flags_get_type()) } } } @@ -344,7 +347,7 @@ impl glib::value::ValueType for RTPHeaderExtensionFlags { #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] -unsafe impl<'a> FromValue<'a> for RTPHeaderExtensionFlags { +unsafe impl<'a> glib::value::FromValue<'a> for RTPHeaderExtensionFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer-rtp/src/auto/rtp_base_depayload.rs b/gstreamer-rtp/src/auto/rtp_base_depayload.rs index df6cbea18..ee65e08cd 100644 --- a/gstreamer-rtp/src/auto/rtp_base_depayload.rs +++ b/gstreamer-rtp/src/auto/rtp_base_depayload.rs @@ -82,14 +82,14 @@ pub trait RTPBaseDepayloadExt: IsA + sealed::Sealed + 'static #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "auto-header-extension")] fn is_auto_header_extension(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "auto-header-extension") + ObjectExt::property(self.as_ref(), "auto-header-extension") } #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "auto-header-extension")] fn set_auto_header_extension(&self, auto_header_extension: bool) { - glib::ObjectExt::set_property( + ObjectExt::set_property( self.as_ref(), "auto-header-extension", auto_header_extension, @@ -100,32 +100,32 @@ pub trait RTPBaseDepayloadExt: IsA + sealed::Sealed + 'static #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "max-reorder")] fn max_reorder(&self) -> i32 { - glib::ObjectExt::property(self.as_ref(), "max-reorder") + ObjectExt::property(self.as_ref(), "max-reorder") } #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "max-reorder")] fn set_max_reorder(&self, max_reorder: i32) { - glib::ObjectExt::set_property(self.as_ref(), "max-reorder", max_reorder) + ObjectExt::set_property(self.as_ref(), "max-reorder", max_reorder) } #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "source-info")] fn is_source_info(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "source-info") + ObjectExt::property(self.as_ref(), "source-info") } #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "source-info")] fn set_source_info(&self, source_info: bool) { - glib::ObjectExt::set_property(self.as_ref(), "source-info", source_info) + ObjectExt::set_property(self.as_ref(), "source-info", source_info) } fn stats(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "stats") + ObjectExt::property(self.as_ref(), "stats") } #[cfg(feature = "v1_20")] diff --git a/gstreamer-rtp/src/auto/rtp_base_payload.rs b/gstreamer-rtp/src/auto/rtp_base_payload.rs index ce4a6fd12..c857a131d 100644 --- a/gstreamer-rtp/src/auto/rtp_base_payload.rs +++ b/gstreamer-rtp/src/auto/rtp_base_payload.rs @@ -133,14 +133,14 @@ pub trait RTPBasePayloadExt: IsA + sealed::Sealed + 'static { #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "auto-header-extension")] fn is_auto_header_extension(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "auto-header-extension") + ObjectExt::property(self.as_ref(), "auto-header-extension") } #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "auto-header-extension")] fn set_auto_header_extension(&self, auto_header_extension: bool) { - glib::ObjectExt::set_property( + ObjectExt::set_property( self.as_ref(), "auto-header-extension", auto_header_extension, @@ -149,44 +149,44 @@ pub trait RTPBasePayloadExt: IsA + sealed::Sealed + 'static { #[doc(alias = "max-ptime")] fn max_ptime(&self) -> i64 { - glib::ObjectExt::property(self.as_ref(), "max-ptime") + ObjectExt::property(self.as_ref(), "max-ptime") } #[doc(alias = "max-ptime")] fn set_max_ptime(&self, max_ptime: i64) { - glib::ObjectExt::set_property(self.as_ref(), "max-ptime", max_ptime) + ObjectExt::set_property(self.as_ref(), "max-ptime", max_ptime) } #[doc(alias = "min-ptime")] fn min_ptime(&self) -> i64 { - glib::ObjectExt::property(self.as_ref(), "min-ptime") + ObjectExt::property(self.as_ref(), "min-ptime") } #[doc(alias = "min-ptime")] fn set_min_ptime(&self, min_ptime: i64) { - glib::ObjectExt::set_property(self.as_ref(), "min-ptime", min_ptime) + ObjectExt::set_property(self.as_ref(), "min-ptime", min_ptime) } fn mtu(&self) -> u32 { - glib::ObjectExt::property(self.as_ref(), "mtu") + ObjectExt::property(self.as_ref(), "mtu") } fn set_mtu(&self, mtu: u32) { - glib::ObjectExt::set_property(self.as_ref(), "mtu", mtu) + ObjectExt::set_property(self.as_ref(), "mtu", mtu) } #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "onvif-no-rate-control")] fn is_onvif_no_rate_control(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "onvif-no-rate-control") + ObjectExt::property(self.as_ref(), "onvif-no-rate-control") } #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "onvif-no-rate-control")] fn set_onvif_no_rate_control(&self, onvif_no_rate_control: bool) { - glib::ObjectExt::set_property( + ObjectExt::set_property( self.as_ref(), "onvif-no-rate-control", onvif_no_rate_control, @@ -195,98 +195,98 @@ pub trait RTPBasePayloadExt: IsA + sealed::Sealed + 'static { #[doc(alias = "perfect-rtptime")] fn is_perfect_rtptime(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "perfect-rtptime") + ObjectExt::property(self.as_ref(), "perfect-rtptime") } #[doc(alias = "perfect-rtptime")] fn set_perfect_rtptime(&self, perfect_rtptime: bool) { - glib::ObjectExt::set_property(self.as_ref(), "perfect-rtptime", perfect_rtptime) + ObjectExt::set_property(self.as_ref(), "perfect-rtptime", perfect_rtptime) } fn pt(&self) -> u32 { - glib::ObjectExt::property(self.as_ref(), "pt") + ObjectExt::property(self.as_ref(), "pt") } fn set_pt(&self, pt: u32) { - glib::ObjectExt::set_property(self.as_ref(), "pt", pt) + ObjectExt::set_property(self.as_ref(), "pt", pt) } #[doc(alias = "ptime-multiple")] fn ptime_multiple(&self) -> i64 { - glib::ObjectExt::property(self.as_ref(), "ptime-multiple") + ObjectExt::property(self.as_ref(), "ptime-multiple") } #[doc(alias = "ptime-multiple")] fn set_ptime_multiple(&self, ptime_multiple: i64) { - glib::ObjectExt::set_property(self.as_ref(), "ptime-multiple", ptime_multiple) + ObjectExt::set_property(self.as_ref(), "ptime-multiple", ptime_multiple) } #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "scale-rtptime")] fn is_scale_rtptime(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "scale-rtptime") + ObjectExt::property(self.as_ref(), "scale-rtptime") } #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] #[doc(alias = "scale-rtptime")] fn set_scale_rtptime(&self, scale_rtptime: bool) { - glib::ObjectExt::set_property(self.as_ref(), "scale-rtptime", scale_rtptime) + ObjectExt::set_property(self.as_ref(), "scale-rtptime", scale_rtptime) } fn seqnum(&self) -> u32 { - glib::ObjectExt::property(self.as_ref(), "seqnum") + ObjectExt::property(self.as_ref(), "seqnum") } #[doc(alias = "seqnum-offset")] fn seqnum_offset(&self) -> i32 { - glib::ObjectExt::property(self.as_ref(), "seqnum-offset") + ObjectExt::property(self.as_ref(), "seqnum-offset") } #[doc(alias = "seqnum-offset")] fn set_seqnum_offset(&self, seqnum_offset: i32) { - glib::ObjectExt::set_property(self.as_ref(), "seqnum-offset", seqnum_offset) + ObjectExt::set_property(self.as_ref(), "seqnum-offset", seqnum_offset) } #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "source-info")] fn is_source_info(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "source-info") + ObjectExt::property(self.as_ref(), "source-info") } #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] #[doc(alias = "source-info")] fn set_source_info(&self, source_info: bool) { - glib::ObjectExt::set_property(self.as_ref(), "source-info", source_info) + ObjectExt::set_property(self.as_ref(), "source-info", source_info) } fn ssrc(&self) -> u32 { - glib::ObjectExt::property(self.as_ref(), "ssrc") + ObjectExt::property(self.as_ref(), "ssrc") } fn set_ssrc(&self, ssrc: u32) { - glib::ObjectExt::set_property(self.as_ref(), "ssrc", ssrc) + ObjectExt::set_property(self.as_ref(), "ssrc", ssrc) } fn stats(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "stats") + ObjectExt::property(self.as_ref(), "stats") } fn timestamp(&self) -> u32 { - glib::ObjectExt::property(self.as_ref(), "timestamp") + ObjectExt::property(self.as_ref(), "timestamp") } #[doc(alias = "timestamp-offset")] fn timestamp_offset(&self) -> u32 { - glib::ObjectExt::property(self.as_ref(), "timestamp-offset") + ObjectExt::property(self.as_ref(), "timestamp-offset") } #[doc(alias = "timestamp-offset")] fn set_timestamp_offset(&self, timestamp_offset: u32) { - glib::ObjectExt::set_property(self.as_ref(), "timestamp-offset", timestamp_offset) + ObjectExt::set_property(self.as_ref(), "timestamp-offset", timestamp_offset) } #[cfg(feature = "v1_20")] diff --git a/gstreamer-rtp/src/auto/versions.txt b/gstreamer-rtp/src/auto/versions.txt index 6c0d75e68..7942439dc 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 @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-rtp/sys/src/auto/versions.txt b/gstreamer-rtp/sys/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-rtp/sys/src/auto/versions.txt +++ b/gstreamer-rtp/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-rtsp-server/src/auto/enums.rs b/gstreamer-rtsp-server/src/auto/enums.rs index 0691b8586..ca3b68d59 100644 --- a/gstreamer-rtsp-server/src/auto/enums.rs +++ b/gstreamer-rtsp-server/src/auto/enums.rs @@ -3,7 +3,7 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type}; +use glib::{prelude::*, translate::*}; #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] @@ -203,7 +203,7 @@ impl FromGlib for RTSPPublishClockMode { impl StaticType for RTSPPublishClockMode { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtsp_publish_clock_mode_get_type()) } } } @@ -222,7 +222,7 @@ impl glib::value::ValueType for RTSPPublishClockMode { type Type = Self; } -unsafe impl<'a> FromValue<'a> for RTSPPublishClockMode { +unsafe impl<'a> glib::value::FromValue<'a> for RTSPPublishClockMode { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -302,7 +302,7 @@ impl FromGlib for RTSPSuspendMode { impl StaticType for RTSPSuspendMode { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtsp_suspend_mode_get_type()) } } } @@ -321,7 +321,7 @@ impl glib::value::ValueType for RTSPSuspendMode { type Type = Self; } -unsafe impl<'a> FromValue<'a> for RTSPSuspendMode { +unsafe impl<'a> glib::value::FromValue<'a> for RTSPSuspendMode { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer-rtsp-server/src/auto/flags.rs b/gstreamer-rtsp-server/src/auto/flags.rs index f7906b67b..1f9f62cf0 100644 --- a/gstreamer-rtsp-server/src/auto/flags.rs +++ b/gstreamer-rtsp-server/src/auto/flags.rs @@ -3,10 +3,10 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -use bitflags::bitflags; -use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type}; +use glib::{bitflags::bitflags, prelude::*, translate::*}; bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstRTSPAddressFlags")] pub struct RTSPAddressFlags: u32 { #[doc(alias = "GST_RTSP_ADDRESS_FLAG_IPV4")] @@ -42,6 +42,7 @@ impl FromGlib for RTSPAddressFlags { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstRTSPTransportMode")] pub struct RTSPTransportMode: u32 { #[doc(alias = "GST_RTSP_TRANSPORT_MODE_PLAY")] @@ -72,7 +73,7 @@ impl FromGlib for RTSPTransportMode { impl StaticType for RTSPTransportMode { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtsp_transport_mode_get_type()) } } } @@ -91,7 +92,7 @@ impl glib::value::ValueType for RTSPTransportMode { type Type = Self; } -unsafe impl<'a> FromValue<'a> for RTSPTransportMode { +unsafe impl<'a> glib::value::FromValue<'a> for RTSPTransportMode { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer-rtsp-server/src/auto/rtsp_client.rs b/gstreamer-rtsp-server/src/auto/rtsp_client.rs index c39153813..9c8bec5c3 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_client.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_client.rs @@ -240,22 +240,22 @@ pub trait RTSPClientExt: IsA + sealed::Sealed + 'static { #[doc(alias = "drop-backlog")] fn is_drop_backlog(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "drop-backlog") + ObjectExt::property(self.as_ref(), "drop-backlog") } #[doc(alias = "drop-backlog")] fn set_drop_backlog(&self, drop_backlog: bool) { - glib::ObjectExt::set_property(self.as_ref(), "drop-backlog", drop_backlog) + ObjectExt::set_property(self.as_ref(), "drop-backlog", drop_backlog) } #[doc(alias = "post-session-timeout")] fn post_session_timeout(&self) -> i32 { - glib::ObjectExt::property(self.as_ref(), "post-session-timeout") + ObjectExt::property(self.as_ref(), "post-session-timeout") } #[doc(alias = "post-session-timeout")] fn set_post_session_timeout(&self, post_session_timeout: i32) { - glib::ObjectExt::set_property(self.as_ref(), "post-session-timeout", post_session_timeout) + ObjectExt::set_property(self.as_ref(), "post-session-timeout", post_session_timeout) } #[doc(alias = "announce-request")] diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media.rs b/gstreamer-rtsp-server/src/auto/rtsp_media.rs index f184bc5a3..333744d28 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media.rs @@ -729,37 +729,37 @@ pub trait RTSPMediaExt: IsA + sealed::Sealed + 'static { #[doc(alias = "bind-mcast-address")] fn get_property_bind_mcast_address(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "bind-mcast-address") + ObjectExt::property(self.as_ref(), "bind-mcast-address") } #[doc(alias = "bind-mcast-address")] fn set_property_bind_mcast_address(&self, bind_mcast_address: bool) { - glib::ObjectExt::set_property(self.as_ref(), "bind-mcast-address", bind_mcast_address) + ObjectExt::set_property(self.as_ref(), "bind-mcast-address", bind_mcast_address) } #[doc(alias = "dscp-qos")] fn get_property_dscp_qos(&self) -> i32 { - glib::ObjectExt::property(self.as_ref(), "dscp-qos") + ObjectExt::property(self.as_ref(), "dscp-qos") } #[doc(alias = "dscp-qos")] fn set_property_dscp_qos(&self, dscp_qos: i32) { - glib::ObjectExt::set_property(self.as_ref(), "dscp-qos", dscp_qos) + ObjectExt::set_property(self.as_ref(), "dscp-qos", dscp_qos) } #[doc(alias = "max-mcast-ttl")] fn get_property_max_mcast_ttl(&self) -> u32 { - glib::ObjectExt::property(self.as_ref(), "max-mcast-ttl") + ObjectExt::property(self.as_ref(), "max-mcast-ttl") } #[doc(alias = "max-mcast-ttl")] fn set_property_max_mcast_ttl(&self, max_mcast_ttl: u32) { - glib::ObjectExt::set_property(self.as_ref(), "max-mcast-ttl", max_mcast_ttl) + ObjectExt::set_property(self.as_ref(), "max-mcast-ttl", max_mcast_ttl) } #[doc(alias = "time-provider")] fn set_time_provider(&self, time_provider: bool) { - glib::ObjectExt::set_property(self.as_ref(), "time-provider", time_provider) + ObjectExt::set_property(self.as_ref(), "time-provider", time_provider) } #[cfg(feature = "v1_22")] diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs b/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs index 8129e73db..f02f07bc6 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs @@ -495,37 +495,37 @@ pub trait RTSPMediaFactoryExt: IsA + sealed::Sealed + 'static #[doc(alias = "bind-mcast-address")] fn get_property_bind_mcast_address(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "bind-mcast-address") + ObjectExt::property(self.as_ref(), "bind-mcast-address") } #[doc(alias = "bind-mcast-address")] fn set_property_bind_mcast_address(&self, bind_mcast_address: bool) { - glib::ObjectExt::set_property(self.as_ref(), "bind-mcast-address", bind_mcast_address) + ObjectExt::set_property(self.as_ref(), "bind-mcast-address", bind_mcast_address) } #[doc(alias = "dscp-qos")] fn get_property_dscp_qos(&self) -> i32 { - glib::ObjectExt::property(self.as_ref(), "dscp-qos") + ObjectExt::property(self.as_ref(), "dscp-qos") } #[doc(alias = "dscp-qos")] fn set_property_dscp_qos(&self, dscp_qos: i32) { - glib::ObjectExt::set_property(self.as_ref(), "dscp-qos", dscp_qos) + ObjectExt::set_property(self.as_ref(), "dscp-qos", dscp_qos) } #[doc(alias = "max-mcast-ttl")] fn get_property_max_mcast_ttl(&self) -> u32 { - glib::ObjectExt::property(self.as_ref(), "max-mcast-ttl") + ObjectExt::property(self.as_ref(), "max-mcast-ttl") } #[doc(alias = "max-mcast-ttl")] fn set_property_max_mcast_ttl(&self, max_mcast_ttl: u32) { - glib::ObjectExt::set_property(self.as_ref(), "max-mcast-ttl", max_mcast_ttl) + ObjectExt::set_property(self.as_ref(), "max-mcast-ttl", max_mcast_ttl) } #[doc(alias = "stop-on-disconnect")] fn is_stop_on_disconnect(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "stop-on-disconnect") + ObjectExt::property(self.as_ref(), "stop-on-disconnect") } #[doc(alias = "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 9596ef420..29f710dfc 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media_factory_uri.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media_factory_uri.rs @@ -67,12 +67,12 @@ pub trait RTSPMediaFactoryURIExt: IsA + sealed::Sealed + 's #[doc(alias = "use-gstpay")] fn uses_gstpay(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "use-gstpay") + ObjectExt::property(self.as_ref(), "use-gstpay") } #[doc(alias = "use-gstpay")] fn set_use_gstpay(&self, use_gstpay: bool) { - glib::ObjectExt::set_property(self.as_ref(), "use-gstpay", use_gstpay) + ObjectExt::set_property(self.as_ref(), "use-gstpay", use_gstpay) } #[doc(alias = "uri")] diff --git a/gstreamer-rtsp-server/src/auto/rtsp_server.rs b/gstreamer-rtsp-server/src/auto/rtsp_server.rs index ed8872dce..45257d283 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_server.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_server.rs @@ -328,12 +328,12 @@ pub trait RTSPServerExt: IsA + sealed::Sealed + 'static { #[doc(alias = "content-length-limit")] fn get_property_content_length_limit(&self) -> u32 { - glib::ObjectExt::property(self.as_ref(), "content-length-limit") + ObjectExt::property(self.as_ref(), "content-length-limit") } #[doc(alias = "content-length-limit")] fn set_property_content_length_limit(&self, content_length_limit: u32) { - glib::ObjectExt::set_property(self.as_ref(), "content-length-limit", content_length_limit) + ObjectExt::set_property(self.as_ref(), "content-length-limit", content_length_limit) } #[doc(alias = "client-connected")] diff --git a/gstreamer-rtsp-server/src/auto/rtsp_session.rs b/gstreamer-rtsp-server/src/auto/rtsp_session.rs index 1cd779105..63878b513 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_session.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_session.rs @@ -186,22 +186,22 @@ pub trait RTSPSessionExt: IsA + sealed::Sealed + 'static { #[doc(alias = "extra-timeout")] fn extra_timeout(&self) -> u32 { - glib::ObjectExt::property(self.as_ref(), "extra-timeout") + ObjectExt::property(self.as_ref(), "extra-timeout") } #[doc(alias = "extra-timeout")] fn set_extra_timeout(&self, extra_timeout: u32) { - glib::ObjectExt::set_property(self.as_ref(), "extra-timeout", extra_timeout) + ObjectExt::set_property(self.as_ref(), "extra-timeout", extra_timeout) } #[doc(alias = "timeout-always-visible")] fn is_timeout_always_visible(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "timeout-always-visible") + ObjectExt::property(self.as_ref(), "timeout-always-visible") } #[doc(alias = "timeout-always-visible")] fn set_timeout_always_visible(&self, timeout_always_visible: bool) { - glib::ObjectExt::set_property( + ObjectExt::set_property( self.as_ref(), "timeout-always-visible", timeout_always_visible, diff --git a/gstreamer-rtsp-server/src/auto/versions.txt b/gstreamer-rtsp-server/src/auto/versions.txt index 6c0d75e68..7942439dc 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 @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-rtsp-server/sys/src/auto/versions.txt b/gstreamer-rtsp-server/sys/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-rtsp-server/sys/src/auto/versions.txt +++ b/gstreamer-rtsp-server/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-rtsp/src/auto/enums.rs b/gstreamer-rtsp/src/auto/enums.rs index aa7c9f854..4c67c9320 100644 --- a/gstreamer-rtsp/src/auto/enums.rs +++ b/gstreamer-rtsp/src/auto/enums.rs @@ -3,7 +3,7 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type}; +use glib::{prelude::*, translate::*}; #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] #[non_exhaustive] @@ -51,7 +51,7 @@ impl FromGlib for RTSPAuthMethod { impl StaticType for RTSPAuthMethod { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtsp_auth_method_get_type()) } } } @@ -70,7 +70,7 @@ impl glib::value::ValueType for RTSPAuthMethod { type Type = Self; } -unsafe impl<'a> FromValue<'a> for RTSPAuthMethod { +unsafe impl<'a> glib::value::FromValue<'a> for RTSPAuthMethod { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -150,7 +150,7 @@ impl FromGlib for RTSPFamily { impl StaticType for RTSPFamily { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtsp_family_get_type()) } } } @@ -169,7 +169,7 @@ impl glib::value::ValueType for RTSPFamily { type Type = Self; } -unsafe impl<'a> FromValue<'a> for RTSPFamily { +unsafe impl<'a> glib::value::FromValue<'a> for RTSPFamily { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -595,7 +595,7 @@ impl FromGlib for RTSPHeaderField { impl StaticType for RTSPHeaderField { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtsp_header_field_get_type()) } } } @@ -614,7 +614,7 @@ impl glib::value::ValueType for RTSPHeaderField { type Type = Self; } -unsafe impl<'a> FromValue<'a> for RTSPHeaderField { +unsafe impl<'a> glib::value::FromValue<'a> for RTSPHeaderField { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -706,7 +706,7 @@ impl FromGlib for RTSPMsgType { impl StaticType for RTSPMsgType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtsp_msg_type_get_type()) } } } @@ -725,7 +725,7 @@ impl glib::value::ValueType for RTSPMsgType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for RTSPMsgType { +unsafe impl<'a> glib::value::FromValue<'a> for RTSPMsgType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -813,7 +813,7 @@ impl FromGlib for RTSPRangeUnit { impl StaticType for RTSPRangeUnit { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtsp_range_unit_get_type()) } } } @@ -832,7 +832,7 @@ impl glib::value::ValueType for RTSPRangeUnit { type Type = Self; } -unsafe impl<'a> FromValue<'a> for RTSPRangeUnit { +unsafe impl<'a> glib::value::FromValue<'a> for RTSPRangeUnit { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -970,7 +970,7 @@ impl FromGlib for RTSPResult { impl StaticType for RTSPResult { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtsp_result_get_type()) } } } @@ -989,7 +989,7 @@ impl glib::value::ValueType for RTSPResult { type Type = Self; } -unsafe impl<'a> FromValue<'a> for RTSPResult { +unsafe impl<'a> glib::value::FromValue<'a> for RTSPResult { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1081,7 +1081,7 @@ impl FromGlib for RTSPState { impl StaticType for RTSPState { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtsp_state_get_type()) } } } @@ -1100,7 +1100,7 @@ impl glib::value::ValueType for RTSPState { type Type = Self; } -unsafe impl<'a> FromValue<'a> for RTSPState { +unsafe impl<'a> glib::value::FromValue<'a> for RTSPState { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1358,7 +1358,7 @@ impl FromGlib for RTSPStatusCode { impl StaticType for RTSPStatusCode { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtsp_status_code_get_type()) } } } @@ -1377,7 +1377,7 @@ impl glib::value::ValueType for RTSPStatusCode { type Type = Self; } -unsafe impl<'a> FromValue<'a> for RTSPStatusCode { +unsafe impl<'a> glib::value::FromValue<'a> for RTSPStatusCode { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1465,7 +1465,7 @@ impl FromGlib for RTSPTimeType { impl StaticType for RTSPTimeType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtsp_time_type_get_type()) } } } @@ -1484,7 +1484,7 @@ impl glib::value::ValueType for RTSPTimeType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for RTSPTimeType { +unsafe impl<'a> glib::value::FromValue<'a> for RTSPTimeType { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer-rtsp/src/auto/flags.rs b/gstreamer-rtsp/src/auto/flags.rs index 63d2dcff6..e466e0eb4 100644 --- a/gstreamer-rtsp/src/auto/flags.rs +++ b/gstreamer-rtsp/src/auto/flags.rs @@ -3,10 +3,10 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -use bitflags::bitflags; -use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type}; +use glib::{bitflags::bitflags, prelude::*, translate::*}; bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstRTSPEvent")] pub struct RTSPEvent: u32 { #[doc(alias = "GST_RTSP_EV_READ")] @@ -37,7 +37,7 @@ impl FromGlib for RTSPEvent { impl StaticType for RTSPEvent { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtsp_event_get_type()) } } } @@ -56,7 +56,7 @@ impl glib::value::ValueType for RTSPEvent { type Type = Self; } -unsafe impl<'a> FromValue<'a> for RTSPEvent { +unsafe impl<'a> glib::value::FromValue<'a> for RTSPEvent { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -91,6 +91,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstRTSPLowerTrans")] pub struct RTSPLowerTrans: u32 { #[doc(alias = "GST_RTSP_LOWER_TRANS_UDP")] @@ -127,7 +128,7 @@ impl FromGlib for RTSPLowerTrans { impl StaticType for RTSPLowerTrans { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtsp_lower_trans_get_type()) } } } @@ -146,7 +147,7 @@ impl glib::value::ValueType for RTSPLowerTrans { type Type = Self; } -unsafe impl<'a> FromValue<'a> for RTSPLowerTrans { +unsafe impl<'a> glib::value::FromValue<'a> for RTSPLowerTrans { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -181,6 +182,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstRTSPMethod")] pub struct RTSPMethod: u32 { #[doc(alias = "GST_RTSP_DESCRIBE")] @@ -241,7 +243,7 @@ impl FromGlib for RTSPMethod { impl StaticType for RTSPMethod { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtsp_method_get_type()) } } } @@ -260,7 +262,7 @@ impl glib::value::ValueType for RTSPMethod { type Type = Self; } -unsafe impl<'a> FromValue<'a> for RTSPMethod { +unsafe impl<'a> glib::value::FromValue<'a> for RTSPMethod { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -295,6 +297,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstRTSPProfile")] pub struct RTSPProfile: u32 { #[doc(alias = "GST_RTSP_PROFILE_AVP")] @@ -329,7 +332,7 @@ impl FromGlib for RTSPProfile { impl StaticType for RTSPProfile { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtsp_profile_get_type()) } } } @@ -348,7 +351,7 @@ impl glib::value::ValueType for RTSPProfile { type Type = Self; } -unsafe impl<'a> FromValue<'a> for RTSPProfile { +unsafe impl<'a> glib::value::FromValue<'a> for RTSPProfile { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -383,6 +386,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstRTSPTransMode")] pub struct RTSPTransMode: u32 { #[doc(alias = "GST_RTSP_TRANS_RTP")] @@ -413,7 +417,7 @@ impl FromGlib for RTSPTransMode { impl StaticType for RTSPTransMode { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rtsp_trans_mode_get_type()) } } } @@ -432,7 +436,7 @@ impl glib::value::ValueType for RTSPTransMode { type Type = Self; } -unsafe impl<'a> FromValue<'a> for RTSPTransMode { +unsafe impl<'a> glib::value::FromValue<'a> for RTSPTransMode { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer-rtsp/src/auto/versions.txt b/gstreamer-rtsp/src/auto/versions.txt index 6c0d75e68..7942439dc 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 @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-rtsp/sys/src/auto/versions.txt b/gstreamer-rtsp/sys/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-rtsp/sys/src/auto/versions.txt +++ b/gstreamer-rtsp/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-sdp/src/auto/versions.txt b/gstreamer-sdp/src/auto/versions.txt index 6c0d75e68..7942439dc 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 @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-sdp/sys/src/auto/versions.txt b/gstreamer-sdp/sys/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-sdp/sys/src/auto/versions.txt +++ b/gstreamer-sdp/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-tag/sys/src/auto/versions.txt b/gstreamer-tag/sys/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-tag/sys/src/auto/versions.txt +++ b/gstreamer-tag/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-validate/src/auto/bin_monitor.rs b/gstreamer-validate/src/auto/bin_monitor.rs index 45b4ba2e5..e81a540a1 100644 --- a/gstreamer-validate/src/auto/bin_monitor.rs +++ b/gstreamer-validate/src/auto/bin_monitor.rs @@ -61,7 +61,7 @@ pub trait BinMonitorExt: IsA + sealed::Sealed + 'static { #[doc(alias = "handles-states")] fn is_handles_states(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "handles-states") + ObjectExt::property(self.as_ref(), "handles-states") } #[doc(alias = "handles-states")] diff --git a/gstreamer-validate/src/auto/enums.rs b/gstreamer-validate/src/auto/enums.rs index 3800a8c16..ab7938db5 100644 --- a/gstreamer-validate/src/auto/enums.rs +++ b/gstreamer-validate/src/auto/enums.rs @@ -3,7 +3,7 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -use glib::{translate::*, value::FromValue, value::ToValue, GStr, StaticType, Type}; +use glib::{prelude::*, translate::*, GStr}; use std::fmt; #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] @@ -97,7 +97,7 @@ impl FromGlib for ReportLevel { impl StaticType for ReportLevel { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_validate_report_level_get_type()) } } } @@ -116,7 +116,7 @@ impl glib::value::ValueType for ReportLevel { type Type = Self; } -unsafe impl<'a> FromValue<'a> for ReportLevel { +unsafe impl<'a> glib::value::FromValue<'a> for ReportLevel { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -216,7 +216,7 @@ impl FromGlib for ReportingDetails { impl StaticType for ReportingDetails { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_validate_reporting_details_get_type()) } } } @@ -235,7 +235,7 @@ impl glib::value::ValueType for ReportingDetails { type Type = Self; } -unsafe impl<'a> FromValue<'a> for ReportingDetails { +unsafe impl<'a> glib::value::FromValue<'a> for ReportingDetails { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer-validate/src/auto/flags.rs b/gstreamer-validate/src/auto/flags.rs index eb4d56a84..06cf9d5db 100644 --- a/gstreamer-validate/src/auto/flags.rs +++ b/gstreamer-validate/src/auto/flags.rs @@ -3,10 +3,10 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -use bitflags::bitflags; -use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type}; +use glib::{bitflags::bitflags, prelude::*, translate::*}; bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstValidateActionTypeFlags")] pub struct ActionTypeFlags: u32 { #[doc(alias = "GST_VALIDATE_ACTION_TYPE_NONE")] @@ -57,7 +57,7 @@ impl FromGlib for ActionTypeFlags { impl StaticType for ActionTypeFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_validate_action_type_flags_get_type()) } } } @@ -76,7 +76,7 @@ impl glib::value::ValueType for ActionTypeFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for ActionTypeFlags { +unsafe impl<'a> glib::value::FromValue<'a> for ActionTypeFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -111,6 +111,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstValidateIssueFlags")] pub struct IssueFlags: u32 { #[doc(alias = "GST_VALIDATE_ISSUE_FLAGS_NONE")] @@ -145,7 +146,7 @@ impl FromGlib for IssueFlags { impl StaticType for IssueFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_validate_issue_flags_get_type()) } } } @@ -164,7 +165,7 @@ impl glib::value::ValueType for IssueFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for IssueFlags { +unsafe impl<'a> glib::value::FromValue<'a> for IssueFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer-validate/src/auto/monitor.rs b/gstreamer-validate/src/auto/monitor.rs index 70e81a40f..246d787a3 100644 --- a/gstreamer-validate/src/auto/monitor.rs +++ b/gstreamer-validate/src/auto/monitor.rs @@ -100,24 +100,24 @@ pub trait MonitorExt: IsA + sealed::Sealed + 'static { //} fn object(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "object") + ObjectExt::property(self.as_ref(), "object") } fn set_pipeline>(&self, pipeline: Option<&P>) { - glib::ObjectExt::set_property(self.as_ref(), "pipeline", pipeline) + ObjectExt::set_property(self.as_ref(), "pipeline", pipeline) } #[doc(alias = "validate-parent")] fn validate_parent(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "validate-parent") + ObjectExt::property(self.as_ref(), "validate-parent") } //fn verbosity(&self) -> /*Ignored*/VerbosityFlags { - // glib::ObjectExt::property(self.as_ref(), "verbosity") + // ObjectExt::property(self.as_ref(), "verbosity") //} //fn set_verbosity(&self, verbosity: /*Ignored*/VerbosityFlags) { - // glib::ObjectExt::set_property(self.as_ref(),"verbosity", verbosity) + // ObjectExt::set_property(self.as_ref(),"verbosity", verbosity) //} #[doc(alias = "pipeline")] diff --git a/gstreamer-validate/src/auto/reporter.rs b/gstreamer-validate/src/auto/reporter.rs index 44c61b55c..17e1fa13c 100644 --- a/gstreamer-validate/src/auto/reporter.rs +++ b/gstreamer-validate/src/auto/reporter.rs @@ -138,7 +138,7 @@ pub trait ReporterExt: IsA + sealed::Sealed + 'static { #[doc(alias = "validate-runner")] fn validate_runner(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "validate-runner") + ObjectExt::property(self.as_ref(), "validate-runner") } } diff --git a/gstreamer-validate/src/auto/scenario.rs b/gstreamer-validate/src/auto/scenario.rs index 1a49a3352..262bc0b01 100644 --- a/gstreamer-validate/src/auto/scenario.rs +++ b/gstreamer-validate/src/auto/scenario.rs @@ -91,17 +91,17 @@ pub trait ScenarioExt: IsA + sealed::Sealed + 'static { #[doc(alias = "execute-on-idle")] fn is_execute_on_idle(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "execute-on-idle") + ObjectExt::property(self.as_ref(), "execute-on-idle") } #[doc(alias = "execute-on-idle")] fn set_execute_on_idle(&self, execute_on_idle: bool) { - glib::ObjectExt::set_property(self.as_ref(), "execute-on-idle", execute_on_idle) + ObjectExt::set_property(self.as_ref(), "execute-on-idle", execute_on_idle) } #[doc(alias = "handles-states")] fn is_handles_states(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "handles-states") + ObjectExt::property(self.as_ref(), "handles-states") } #[doc(alias = "action-done")] diff --git a/gstreamer-validate/src/auto/versions.txt b/gstreamer-validate/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-validate/src/auto/versions.txt +++ b/gstreamer-validate/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-validate/sys/src/auto/versions.txt b/gstreamer-validate/sys/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-validate/sys/src/auto/versions.txt +++ b/gstreamer-validate/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-video/src/auto/enums.rs b/gstreamer-video/src/auto/enums.rs index de777bea0..0761c6827 100644 --- a/gstreamer-video/src/auto/enums.rs +++ b/gstreamer-video/src/auto/enums.rs @@ -3,7 +3,7 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -use glib::{translate::*, value::FromValue, value::ToValue, GStr, StaticType, Type}; +use glib::{prelude::*, translate::*, GStr}; use std::fmt; #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] @@ -48,7 +48,7 @@ impl FromGlib for ColorBalanceType { impl StaticType for ColorBalanceType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_color_balance_type_get_type()) } } } @@ -67,7 +67,7 @@ impl glib::value::ValueType for ColorBalanceType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for ColorBalanceType { +unsafe impl<'a> glib::value::FromValue<'a> for ColorBalanceType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -194,7 +194,7 @@ impl FromGlib for NavigationCommand { impl StaticType for NavigationCommand { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_navigation_command_get_type()) } } } @@ -213,7 +213,7 @@ impl glib::value::ValueType for NavigationCommand { type Type = Self; } -unsafe impl<'a> FromValue<'a> for NavigationCommand { +unsafe impl<'a> glib::value::FromValue<'a> for NavigationCommand { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -355,7 +355,7 @@ impl FromGlib for NavigationEventType { impl StaticType for NavigationEventType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_navigation_event_type_get_type()) } } } @@ -374,7 +374,7 @@ impl glib::value::ValueType for NavigationEventType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for NavigationEventType { +unsafe impl<'a> glib::value::FromValue<'a> for NavigationEventType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -462,7 +462,7 @@ impl FromGlib for NavigationMessageType { impl StaticType for NavigationMessageType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_navigation_message_type_get_type()) } } } @@ -481,7 +481,7 @@ impl glib::value::ValueType for NavigationMessageType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for NavigationMessageType { +unsafe impl<'a> glib::value::FromValue<'a> for NavigationMessageType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -561,7 +561,7 @@ impl FromGlib for NavigationQueryType { impl StaticType for NavigationQueryType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_navigation_query_type_get_type()) } } } @@ -580,7 +580,7 @@ impl glib::value::ValueType for NavigationQueryType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for NavigationQueryType { +unsafe impl<'a> glib::value::FromValue<'a> for NavigationQueryType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -668,7 +668,7 @@ impl FromGlib for VideoAFDSpec { #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl StaticType for VideoAFDSpec { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_afd_spec_get_type()) } } } @@ -693,7 +693,7 @@ impl glib::value::ValueType for VideoAFDSpec { #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] -unsafe impl<'a> FromValue<'a> for VideoAFDSpec { +unsafe impl<'a> glib::value::FromValue<'a> for VideoAFDSpec { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -817,7 +817,7 @@ impl FromGlib for VideoAFDValue { #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl StaticType for VideoAFDValue { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_afd_value_get_type()) } } } @@ -842,7 +842,7 @@ impl glib::value::ValueType for VideoAFDValue { #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] -unsafe impl<'a> FromValue<'a> for VideoAFDValue { +unsafe impl<'a> glib::value::FromValue<'a> for VideoAFDValue { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -926,7 +926,7 @@ impl FromGlib for VideoAlphaMode { impl StaticType for VideoAlphaMode { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_alpha_mode_get_type()) } } } @@ -945,7 +945,7 @@ impl glib::value::ValueType for VideoAlphaMode { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoAlphaMode { +unsafe impl<'a> glib::value::FromValue<'a> for VideoAlphaMode { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1051,7 +1051,7 @@ impl FromGlib for VideoCaptionType { #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl StaticType for VideoCaptionType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_caption_type_get_type()) } } } @@ -1076,7 +1076,7 @@ impl glib::value::ValueType for VideoCaptionType { #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] -unsafe impl<'a> FromValue<'a> for VideoCaptionType { +unsafe impl<'a> glib::value::FromValue<'a> for VideoCaptionType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1164,7 +1164,7 @@ impl FromGlib for VideoChromaMode { impl StaticType for VideoChromaMode { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_chroma_mode_get_type()) } } } @@ -1183,7 +1183,7 @@ impl glib::value::ValueType for VideoChromaMode { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoChromaMode { +unsafe impl<'a> glib::value::FromValue<'a> for VideoChromaMode { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1297,7 +1297,7 @@ impl FromGlib for VideoColorMatrix { impl StaticType for VideoColorMatrix { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_color_matrix_get_type()) } } } @@ -1316,7 +1316,7 @@ impl glib::value::ValueType for VideoColorMatrix { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoColorMatrix { +unsafe impl<'a> glib::value::FromValue<'a> for VideoColorMatrix { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1487,7 +1487,7 @@ impl FromGlib for VideoColorPrimaries { impl StaticType for VideoColorPrimaries { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_color_primaries_get_type()) } } } @@ -1506,7 +1506,7 @@ impl glib::value::ValueType for VideoColorPrimaries { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoColorPrimaries { +unsafe impl<'a> glib::value::FromValue<'a> for VideoColorPrimaries { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1594,7 +1594,7 @@ impl FromGlib for VideoDitherMethod { impl StaticType for VideoDitherMethod { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_dither_method_get_type()) } } } @@ -1613,7 +1613,7 @@ impl glib::value::ValueType for VideoDitherMethod { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoDitherMethod { +unsafe impl<'a> glib::value::FromValue<'a> for VideoDitherMethod { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1712,7 +1712,7 @@ impl FromGlib for VideoFieldOrder { impl StaticType for VideoFieldOrder { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_field_order_get_type()) } } } @@ -1731,7 +1731,7 @@ impl glib::value::ValueType for VideoFieldOrder { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoFieldOrder { +unsafe impl<'a> glib::value::FromValue<'a> for VideoFieldOrder { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -2418,7 +2418,7 @@ impl FromGlib for VideoFormat { impl StaticType for VideoFormat { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_format_get_type()) } } } @@ -2437,7 +2437,7 @@ impl glib::value::ValueType for VideoFormat { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoFormat { +unsafe impl<'a> glib::value::FromValue<'a> for VideoFormat { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -2513,7 +2513,7 @@ impl FromGlib for VideoGammaMode { impl StaticType for VideoGammaMode { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_gamma_mode_get_type()) } } } @@ -2532,7 +2532,7 @@ impl glib::value::ValueType for VideoGammaMode { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoGammaMode { +unsafe impl<'a> glib::value::FromValue<'a> for VideoGammaMode { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -2653,7 +2653,7 @@ impl FromGlib for VideoInterlaceMode { impl StaticType for VideoInterlaceMode { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_interlace_mode_get_type()) } } } @@ -2672,7 +2672,7 @@ impl glib::value::ValueType for VideoInterlaceMode { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoInterlaceMode { +unsafe impl<'a> glib::value::FromValue<'a> for VideoInterlaceMode { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -2756,7 +2756,7 @@ impl FromGlib for VideoMatrixMode { impl StaticType for VideoMatrixMode { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_matrix_mode_get_type()) } } } @@ -2775,7 +2775,7 @@ impl glib::value::ValueType for VideoMatrixMode { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoMatrixMode { +unsafe impl<'a> glib::value::FromValue<'a> for VideoMatrixMode { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -2887,7 +2887,7 @@ impl FromGlib for VideoMultiviewFramePacking impl StaticType for VideoMultiviewFramePacking { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_multiview_frame_packing_get_type()) } } } @@ -2906,7 +2906,7 @@ impl glib::value::ValueType for VideoMultiviewFramePacking { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoMultiviewFramePacking { +unsafe impl<'a> glib::value::FromValue<'a> for VideoMultiviewFramePacking { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -3046,7 +3046,7 @@ impl FromGlib for VideoMultiviewMode { impl StaticType for VideoMultiviewMode { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_multiview_mode_get_type()) } } } @@ -3065,7 +3065,7 @@ impl glib::value::ValueType for VideoMultiviewMode { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoMultiviewMode { +unsafe impl<'a> glib::value::FromValue<'a> for VideoMultiviewMode { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -3173,7 +3173,7 @@ impl FromGlib for VideoOrientationMethod { impl StaticType for VideoOrientationMethod { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_orientation_method_get_type()) } } } @@ -3192,7 +3192,7 @@ impl glib::value::ValueType for VideoOrientationMethod { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoOrientationMethod { +unsafe impl<'a> glib::value::FromValue<'a> for VideoOrientationMethod { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -3272,7 +3272,7 @@ impl FromGlib for VideoPrimariesMode { impl StaticType for VideoPrimariesMode { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_primaries_mode_get_type()) } } } @@ -3291,7 +3291,7 @@ impl glib::value::ValueType for VideoPrimariesMode { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoPrimariesMode { +unsafe impl<'a> glib::value::FromValue<'a> for VideoPrimariesMode { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -3379,7 +3379,7 @@ impl FromGlib for VideoResamplerMethod { impl StaticType for VideoResamplerMethod { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_resampler_method_get_type()) } } } @@ -3398,7 +3398,7 @@ impl glib::value::ValueType for VideoResamplerMethod { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoResamplerMethod { +unsafe impl<'a> glib::value::FromValue<'a> for VideoResamplerMethod { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -3482,7 +3482,7 @@ impl FromGlib for VideoTileMode { impl StaticType for VideoTileMode { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_tile_mode_get_type()) } } } @@ -3501,7 +3501,7 @@ impl glib::value::ValueType for VideoTileMode { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoTileMode { +unsafe impl<'a> glib::value::FromValue<'a> for VideoTileMode { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -3700,7 +3700,7 @@ impl FromGlib for VideoTransferFunction { impl StaticType for VideoTransferFunction { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_transfer_function_get_type()) } } } @@ -3719,7 +3719,7 @@ impl glib::value::ValueType for VideoTransferFunction { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoTransferFunction { +unsafe impl<'a> glib::value::FromValue<'a> for VideoTransferFunction { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer-video/src/auto/flags.rs b/gstreamer-video/src/auto/flags.rs index 87e1b9b69..f5b942393 100644 --- a/gstreamer-video/src/auto/flags.rs +++ b/gstreamer-video/src/auto/flags.rs @@ -3,13 +3,13 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -use bitflags::bitflags; -use glib::{translate::*, value::FromValue, value::ToValue, StaticType, Type}; +use glib::{bitflags::bitflags, prelude::*, translate::*}; use std::fmt; #[cfg(feature = "v1_22")] bitflags! { #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstNavigationModifierType")] pub struct NavigationModifierType: u32 { #[doc(alias = "GST_NAVIGATION_MODIFIER_SHIFT_MASK")] @@ -74,7 +74,7 @@ impl FromGlib for NavigationModifierType { #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] impl StaticType for NavigationModifierType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_navigation_modifier_type_get_type()) } } } @@ -99,7 +99,7 @@ impl glib::value::ValueType for NavigationModifierType { #[cfg(feature = "v1_22")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))] -unsafe impl<'a> FromValue<'a> for NavigationModifierType { +unsafe impl<'a> glib::value::FromValue<'a> for NavigationModifierType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -138,6 +138,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstVideoBufferFlags")] pub struct VideoBufferFlags: u32 { #[doc(alias = "GST_VIDEO_BUFFER_FLAG_INTERLACED")] @@ -188,7 +189,7 @@ impl FromGlib for VideoBufferFlags { impl StaticType for VideoBufferFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_buffer_flags_get_type()) } } } @@ -207,7 +208,7 @@ impl glib::value::ValueType for VideoBufferFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoBufferFlags { +unsafe impl<'a> glib::value::FromValue<'a> for VideoBufferFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -242,6 +243,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstVideoChromaSite")] pub struct VideoChromaSite: u32 { #[doc(alias = "GST_VIDEO_CHROMA_SITE_NONE")] @@ -301,7 +303,7 @@ impl FromGlib for VideoChromaSite { impl StaticType for VideoChromaSite { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_chroma_site_get_type()) } } } @@ -320,7 +322,7 @@ impl glib::value::ValueType for VideoChromaSite { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoChromaSite { +unsafe impl<'a> glib::value::FromValue<'a> for VideoChromaSite { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -355,6 +357,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstVideoCodecFrameFlags")] pub struct VideoCodecFrameFlags: u32 { #[doc(alias = "GST_VIDEO_CODEC_FRAME_FLAG_DECODE_ONLY")] @@ -395,7 +398,7 @@ impl FromGlib for VideoCodecFrameFlags { #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for VideoCodecFrameFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_codec_frame_flags_get_type()) } } } @@ -420,7 +423,7 @@ impl glib::value::ValueType for VideoCodecFrameFlags { #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] -unsafe impl<'a> FromValue<'a> for VideoCodecFrameFlags { +unsafe impl<'a> glib::value::FromValue<'a> for VideoCodecFrameFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -461,6 +464,7 @@ impl From for glib::Value { #[cfg(feature = "v1_20")] bitflags! { #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstVideoDecoderRequestSyncPointFlags")] pub struct VideoDecoderRequestSyncPointFlags: u32 { #[doc(alias = "GST_VIDEO_DECODER_REQUEST_SYNC_POINT_DISCARD_INPUT")] @@ -497,7 +501,7 @@ impl FromGlib for VideoDecoderRequest #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for VideoDecoderRequestSyncPointFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_decoder_request_sync_point_flags_get_type()) } } } @@ -522,7 +526,7 @@ impl glib::value::ValueType for VideoDecoderRequestSyncPointFlags { #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] -unsafe impl<'a> FromValue<'a> for VideoDecoderRequestSyncPointFlags { +unsafe impl<'a> glib::value::FromValue<'a> for VideoDecoderRequestSyncPointFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -561,6 +565,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstVideoFlags")] pub struct VideoFlags: u32 { #[doc(alias = "GST_VIDEO_FLAG_VARIABLE_FPS")] @@ -591,7 +596,7 @@ impl FromGlib for VideoFlags { impl StaticType for VideoFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_flags_get_type()) } } } @@ -610,7 +615,7 @@ impl glib::value::ValueType for VideoFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoFlags { +unsafe impl<'a> glib::value::FromValue<'a> for VideoFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -645,6 +650,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstVideoFormatFlags")] pub struct VideoFormatFlags: u32 { #[doc(alias = "GST_VIDEO_FORMAT_FLAG_YUV")] @@ -693,7 +699,7 @@ impl FromGlib for VideoFormatFlags { impl StaticType for VideoFormatFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_format_flags_get_type()) } } } @@ -712,7 +718,7 @@ impl glib::value::ValueType for VideoFormatFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoFormatFlags { +unsafe impl<'a> glib::value::FromValue<'a> for VideoFormatFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -747,6 +753,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstVideoFrameFlags")] pub struct VideoFrameFlags: u32 { #[doc(alias = "GST_VIDEO_FRAME_FLAG_INTERLACED")] @@ -793,7 +800,7 @@ impl FromGlib for VideoFrameFlags { impl StaticType for VideoFrameFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_frame_flags_get_type()) } } } @@ -812,7 +819,7 @@ impl glib::value::ValueType for VideoFrameFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoFrameFlags { +unsafe impl<'a> glib::value::FromValue<'a> for VideoFrameFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -847,6 +854,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstVideoMultiviewFlags")] pub struct VideoMultiviewFlags: u32 { #[doc(alias = "GST_VIDEO_MULTIVIEW_FLAGS_RIGHT_VIEW_FIRST")] @@ -887,7 +895,7 @@ impl FromGlib for VideoMultiviewFlags { impl StaticType for VideoMultiviewFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_multiview_flags_get_type()) } } } @@ -906,7 +914,7 @@ impl glib::value::ValueType for VideoMultiviewFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoMultiviewFlags { +unsafe impl<'a> glib::value::FromValue<'a> for VideoMultiviewFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -941,6 +949,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstVideoOverlayFormatFlags")] pub struct VideoOverlayFormatFlags: u32 { #[doc(alias = "GST_VIDEO_OVERLAY_FORMAT_FLAG_PREMULTIPLIED_ALPHA")] @@ -973,7 +982,7 @@ impl FromGlib for VideoOverlayFormatFlags { #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl StaticType for VideoOverlayFormatFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_overlay_format_flags_get_type()) } } } @@ -998,7 +1007,7 @@ impl glib::value::ValueType for VideoOverlayFormatFlags { #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] -unsafe impl<'a> FromValue<'a> for VideoOverlayFormatFlags { +unsafe impl<'a> glib::value::FromValue<'a> for VideoOverlayFormatFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1037,6 +1046,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstVideoPackFlags")] pub struct VideoPackFlags: u32 { #[doc(alias = "GST_VIDEO_PACK_FLAG_TRUNCATE_RANGE")] @@ -1067,7 +1077,7 @@ impl FromGlib for VideoPackFlags { impl StaticType for VideoPackFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_pack_flags_get_type()) } } } @@ -1086,7 +1096,7 @@ impl glib::value::ValueType for VideoPackFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for VideoPackFlags { +unsafe impl<'a> glib::value::FromValue<'a> for VideoPackFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1121,6 +1131,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstVideoTimeCodeFlags")] pub struct VideoTimeCodeFlags: u32 { #[doc(alias = "GST_VIDEO_TIME_CODE_FLAGS_DROP_FRAME")] @@ -1153,7 +1164,7 @@ impl FromGlib for VideoTimeCodeFlags { #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl StaticType for VideoTimeCodeFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_video_time_code_flags_get_type()) } } } @@ -1178,7 +1189,7 @@ impl glib::value::ValueType for VideoTimeCodeFlags { #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] -unsafe impl<'a> FromValue<'a> for VideoTimeCodeFlags { +unsafe impl<'a> glib::value::FromValue<'a> for VideoTimeCodeFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer-video/src/auto/versions.txt b/gstreamer-video/src/auto/versions.txt index 6c0d75e68..7942439dc 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 @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-video/src/auto/video_aggregator_pad.rs b/gstreamer-video/src/auto/video_aggregator_pad.rs index bf8c08db2..63fe76796 100644 --- a/gstreamer-video/src/auto/video_aggregator_pad.rs +++ b/gstreamer-video/src/auto/video_aggregator_pad.rs @@ -44,12 +44,12 @@ pub trait VideoAggregatorPadExt: IsA + sealed::Sealed + 'sta #[doc(alias = "max-last-buffer-repeat")] fn max_last_buffer_repeat(&self) -> u64 { - glib::ObjectExt::property(self.as_ref(), "max-last-buffer-repeat") + ObjectExt::property(self.as_ref(), "max-last-buffer-repeat") } #[doc(alias = "max-last-buffer-repeat")] fn set_max_last_buffer_repeat(&self, max_last_buffer_repeat: u64) { - glib::ObjectExt::set_property( + ObjectExt::set_property( self.as_ref(), "max-last-buffer-repeat", max_last_buffer_repeat, @@ -58,20 +58,20 @@ pub trait VideoAggregatorPadExt: IsA + sealed::Sealed + 'sta #[doc(alias = "repeat-after-eos")] fn is_repeat_after_eos(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "repeat-after-eos") + ObjectExt::property(self.as_ref(), "repeat-after-eos") } #[doc(alias = "repeat-after-eos")] fn set_repeat_after_eos(&self, repeat_after_eos: bool) { - glib::ObjectExt::set_property(self.as_ref(), "repeat-after-eos", repeat_after_eos) + ObjectExt::set_property(self.as_ref(), "repeat-after-eos", repeat_after_eos) } fn zorder(&self) -> u32 { - glib::ObjectExt::property(self.as_ref(), "zorder") + ObjectExt::property(self.as_ref(), "zorder") } fn set_zorder(&self, zorder: u32) { - glib::ObjectExt::set_property(self.as_ref(), "zorder", zorder) + ObjectExt::set_property(self.as_ref(), "zorder", zorder) } #[doc(alias = "max-last-buffer-repeat")] diff --git a/gstreamer-video/src/auto/video_decoder.rs b/gstreamer-video/src/auto/video_decoder.rs index 2291be608..7deb7f0f4 100644 --- a/gstreamer-video/src/auto/video_decoder.rs +++ b/gstreamer-video/src/auto/video_decoder.rs @@ -335,7 +335,7 @@ pub trait VideoDecoderExt: IsA + sealed::Sealed + 'static { #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "automatic-request-sync-point-flags")] fn automatic_request_sync_point_flags(&self) -> VideoDecoderRequestSyncPointFlags { - glib::ObjectExt::property(self.as_ref(), "automatic-request-sync-point-flags") + ObjectExt::property(self.as_ref(), "automatic-request-sync-point-flags") } #[cfg(feature = "v1_20")] @@ -345,7 +345,7 @@ pub trait VideoDecoderExt: IsA + sealed::Sealed + 'static { &self, automatic_request_sync_point_flags: VideoDecoderRequestSyncPointFlags, ) { - glib::ObjectExt::set_property( + ObjectExt::set_property( self.as_ref(), "automatic-request-sync-point-flags", automatic_request_sync_point_flags, @@ -356,14 +356,14 @@ pub trait VideoDecoderExt: IsA + sealed::Sealed + 'static { #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "automatic-request-sync-points")] fn is_automatic_request_sync_points(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "automatic-request-sync-points") + ObjectExt::property(self.as_ref(), "automatic-request-sync-points") } #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "automatic-request-sync-points")] fn set_automatic_request_sync_points(&self, automatic_request_sync_points: bool) { - glib::ObjectExt::set_property( + ObjectExt::set_property( self.as_ref(), "automatic-request-sync-points", automatic_request_sync_points, @@ -374,14 +374,14 @@ pub trait VideoDecoderExt: IsA + sealed::Sealed + 'static { #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "discard-corrupted-frames")] fn is_discard_corrupted_frames(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "discard-corrupted-frames") + ObjectExt::property(self.as_ref(), "discard-corrupted-frames") } #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "discard-corrupted-frames")] fn set_discard_corrupted_frames(&self, discard_corrupted_frames: bool) { - glib::ObjectExt::set_property( + ObjectExt::set_property( self.as_ref(), "discard-corrupted-frames", discard_corrupted_frames, @@ -392,14 +392,14 @@ pub trait VideoDecoderExt: IsA + sealed::Sealed + 'static { #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "min-force-key-unit-interval")] fn min_force_key_unit_interval(&self) -> u64 { - glib::ObjectExt::property(self.as_ref(), "min-force-key-unit-interval") + ObjectExt::property(self.as_ref(), "min-force-key-unit-interval") } #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "min-force-key-unit-interval")] fn set_min_force_key_unit_interval(&self, min_force_key_unit_interval: u64) { - glib::ObjectExt::set_property( + ObjectExt::set_property( self.as_ref(), "min-force-key-unit-interval", min_force_key_unit_interval, @@ -409,13 +409,13 @@ pub trait VideoDecoderExt: IsA + sealed::Sealed + 'static { #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn is_qos(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "qos") + ObjectExt::property(self.as_ref(), "qos") } #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] fn set_qos(&self, qos: bool) { - glib::ObjectExt::set_property(self.as_ref(), "qos", qos) + ObjectExt::set_property(self.as_ref(), "qos", qos) } #[cfg(feature = "v1_20")] diff --git a/gstreamer-video/src/auto/video_encoder.rs b/gstreamer-video/src/auto/video_encoder.rs index efa32e5d1..9eb0a8b70 100644 --- a/gstreamer-video/src/auto/video_encoder.rs +++ b/gstreamer-video/src/auto/video_encoder.rs @@ -140,11 +140,11 @@ pub trait VideoEncoderExt: IsA + sealed::Sealed + 'static { } fn is_qos(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "qos") + ObjectExt::property(self.as_ref(), "qos") } fn set_qos(&self, qos: bool) { - glib::ObjectExt::set_property(self.as_ref(), "qos", qos) + ObjectExt::set_property(self.as_ref(), "qos", qos) } #[cfg(feature = "v1_18")] diff --git a/gstreamer-video/src/auto/video_sink.rs b/gstreamer-video/src/auto/video_sink.rs index 0346be790..816b4ece2 100644 --- a/gstreamer-video/src/auto/video_sink.rs +++ b/gstreamer-video/src/auto/video_sink.rs @@ -35,12 +35,12 @@ mod sealed { pub trait VideoSinkExt: IsA + sealed::Sealed + 'static { #[doc(alias = "show-preroll-frame")] fn shows_preroll_frame(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "show-preroll-frame") + ObjectExt::property(self.as_ref(), "show-preroll-frame") } #[doc(alias = "show-preroll-frame")] fn set_show_preroll_frame(&self, show_preroll_frame: bool) { - glib::ObjectExt::set_property(self.as_ref(), "show-preroll-frame", show_preroll_frame) + ObjectExt::set_property(self.as_ref(), "show-preroll-frame", show_preroll_frame) } #[doc(alias = "show-preroll-frame")] diff --git a/gstreamer-video/sys/src/auto/versions.txt b/gstreamer-video/sys/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-video/sys/src/auto/versions.txt +++ b/gstreamer-video/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-webrtc/src/auto/enums.rs b/gstreamer-webrtc/src/auto/enums.rs index 5a03b6341..10ffdce6c 100644 --- a/gstreamer-webrtc/src/auto/enums.rs +++ b/gstreamer-webrtc/src/auto/enums.rs @@ -3,10 +3,7 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -#[cfg(feature = "v1_20")] -#[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] -use glib::{error::ErrorDomain, Quark}; -use glib::{translate::*, value::FromValue, value::ToValue, GStr, StaticType, Type}; +use glib::{prelude::*, translate::*, GStr}; use std::fmt; #[cfg(feature = "v1_16")] @@ -67,7 +64,7 @@ impl FromGlib for WebRTCBundlePolicy { #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl StaticType for WebRTCBundlePolicy { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_webrtc_bundle_policy_get_type()) } } } @@ -92,7 +89,7 @@ impl glib::value::ValueType for WebRTCBundlePolicy { #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] -unsafe impl<'a> FromValue<'a> for WebRTCBundlePolicy { +unsafe impl<'a> glib::value::FromValue<'a> for WebRTCBundlePolicy { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -180,7 +177,7 @@ impl FromGlib for WebRTCDTLSSetup { impl StaticType for WebRTCDTLSSetup { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_webrtc_dtls_setup_get_type()) } } } @@ -199,7 +196,7 @@ impl glib::value::ValueType for WebRTCDTLSSetup { type Type = Self; } -unsafe impl<'a> FromValue<'a> for WebRTCDTLSSetup { +unsafe impl<'a> glib::value::FromValue<'a> for WebRTCDTLSSetup { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -287,7 +284,7 @@ impl FromGlib for WebRTCDTLSTransportState { impl StaticType for WebRTCDTLSTransportState { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_webrtc_dtls_transport_state_get_type()) } } } @@ -306,7 +303,7 @@ impl glib::value::ValueType for WebRTCDTLSTransportState { type Type = Self; } -unsafe impl<'a> FromValue<'a> for WebRTCDTLSTransportState { +unsafe impl<'a> glib::value::FromValue<'a> for WebRTCDTLSTransportState { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -398,7 +395,7 @@ impl FromGlib for WebRTCDataChannelState { #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl StaticType for WebRTCDataChannelState { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_webrtc_data_channel_state_get_type()) } } } @@ -423,7 +420,7 @@ impl glib::value::ValueType for WebRTCDataChannelState { #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] -unsafe impl<'a> FromValue<'a> for WebRTCDataChannelState { +unsafe impl<'a> glib::value::FromValue<'a> for WebRTCDataChannelState { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -557,9 +554,9 @@ impl FromGlib for WebRTCError { #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] -impl ErrorDomain for WebRTCError { +impl glib::error::ErrorDomain for WebRTCError { #[inline] - fn domain() -> Quark { + fn domain() -> glib::Quark { skip_assert_initialized!(); unsafe { from_glib(ffi::gst_webrtc_error_quark()) } @@ -584,7 +581,7 @@ impl ErrorDomain for WebRTCError { #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for WebRTCError { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_webrtc_error_get_type()) } } } @@ -609,7 +606,7 @@ impl glib::value::ValueType for WebRTCError { #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] -unsafe impl<'a> FromValue<'a> for WebRTCError { +unsafe impl<'a> glib::value::FromValue<'a> for WebRTCError { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -697,7 +694,7 @@ impl FromGlib for WebRTCFECType { #[cfg_attr(docsrs, doc(cfg(feature = "v1_14_1")))] impl StaticType for WebRTCFECType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_webrtc_fec_type_get_type()) } } } @@ -722,7 +719,7 @@ impl glib::value::ValueType for WebRTCFECType { #[cfg(feature = "v1_14_1")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_14_1")))] -unsafe impl<'a> FromValue<'a> for WebRTCFECType { +unsafe impl<'a> glib::value::FromValue<'a> for WebRTCFECType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -802,7 +799,7 @@ impl FromGlib for WebRTCICEComponent { impl StaticType for WebRTCICEComponent { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_webrtc_ice_component_get_type()) } } } @@ -821,7 +818,7 @@ impl glib::value::ValueType for WebRTCICEComponent { type Type = Self; } -unsafe impl<'a> FromValue<'a> for WebRTCICEComponent { +unsafe impl<'a> glib::value::FromValue<'a> for WebRTCICEComponent { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -917,7 +914,7 @@ impl FromGlib for WebRTCICEConnectionState { impl StaticType for WebRTCICEConnectionState { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_webrtc_ice_connection_state_get_type()) } } } @@ -936,7 +933,7 @@ impl glib::value::ValueType for WebRTCICEConnectionState { type Type = Self; } -unsafe impl<'a> FromValue<'a> for WebRTCICEConnectionState { +unsafe impl<'a> glib::value::FromValue<'a> for WebRTCICEConnectionState { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1016,7 +1013,7 @@ impl FromGlib for WebRTCICEGatheringState { impl StaticType for WebRTCICEGatheringState { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_webrtc_ice_gathering_state_get_type()) } } } @@ -1035,7 +1032,7 @@ impl glib::value::ValueType for WebRTCICEGatheringState { type Type = Self; } -unsafe impl<'a> FromValue<'a> for WebRTCICEGatheringState { +unsafe impl<'a> glib::value::FromValue<'a> for WebRTCICEGatheringState { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1111,7 +1108,7 @@ impl FromGlib for WebRTCICERole { impl StaticType for WebRTCICERole { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_webrtc_ice_role_get_type()) } } } @@ -1130,7 +1127,7 @@ impl glib::value::ValueType for WebRTCICERole { type Type = Self; } -unsafe impl<'a> FromValue<'a> for WebRTCICERole { +unsafe impl<'a> glib::value::FromValue<'a> for WebRTCICERole { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1214,7 +1211,7 @@ impl FromGlib for WebRTCICETransportPolicy { #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl StaticType for WebRTCICETransportPolicy { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_webrtc_ice_transport_policy_get_type()) } } } @@ -1239,7 +1236,7 @@ impl glib::value::ValueType for WebRTCICETransportPolicy { #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] -unsafe impl<'a> FromValue<'a> for WebRTCICETransportPolicy { +unsafe impl<'a> glib::value::FromValue<'a> for WebRTCICETransportPolicy { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1331,7 +1328,7 @@ impl FromGlib for WebRTCKind { #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for WebRTCKind { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_webrtc_kind_get_type()) } } } @@ -1356,7 +1353,7 @@ impl glib::value::ValueType for WebRTCKind { #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] -unsafe impl<'a> FromValue<'a> for WebRTCKind { +unsafe impl<'a> glib::value::FromValue<'a> for WebRTCKind { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1452,7 +1449,7 @@ impl FromGlib for WebRTCPeerConnectionState { impl StaticType for WebRTCPeerConnectionState { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_webrtc_peer_connection_state_get_type()) } } } @@ -1471,7 +1468,7 @@ impl glib::value::ValueType for WebRTCPeerConnectionState { type Type = Self; } -unsafe impl<'a> FromValue<'a> for WebRTCPeerConnectionState { +unsafe impl<'a> glib::value::FromValue<'a> for WebRTCPeerConnectionState { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1563,7 +1560,7 @@ impl FromGlib for WebRTCPriorityType { #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl StaticType for WebRTCPriorityType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_webrtc_priority_type_get_type()) } } } @@ -1588,7 +1585,7 @@ impl glib::value::ValueType for WebRTCPriorityType { #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] -unsafe impl<'a> FromValue<'a> for WebRTCPriorityType { +unsafe impl<'a> glib::value::FromValue<'a> for WebRTCPriorityType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1680,7 +1677,7 @@ impl FromGlib for WebRTCRTPTransceiverDir impl StaticType for WebRTCRTPTransceiverDirection { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_webrtc_rtp_transceiver_direction_get_type()) } } } @@ -1699,7 +1696,7 @@ impl glib::value::ValueType for WebRTCRTPTransceiverDirection { type Type = Self; } -unsafe impl<'a> FromValue<'a> for WebRTCRTPTransceiverDirection { +unsafe impl<'a> glib::value::FromValue<'a> for WebRTCRTPTransceiverDirection { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1791,7 +1788,7 @@ impl FromGlib for WebRTCSCTPTransportState { #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] impl StaticType for WebRTCSCTPTransportState { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_webrtc_sctp_transport_state_get_type()) } } } @@ -1816,7 +1813,7 @@ impl glib::value::ValueType for WebRTCSCTPTransportState { #[cfg(feature = "v1_16")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_16")))] -unsafe impl<'a> FromValue<'a> for WebRTCSCTPTransportState { +unsafe impl<'a> glib::value::FromValue<'a> for WebRTCSCTPTransportState { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1923,7 +1920,7 @@ impl FromGlib for WebRTCSDPType { impl StaticType for WebRTCSDPType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_webrtc_sdp_type_get_type()) } } } @@ -1942,7 +1939,7 @@ impl glib::value::ValueType for WebRTCSDPType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for WebRTCSDPType { +unsafe impl<'a> glib::value::FromValue<'a> for WebRTCSDPType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -2034,7 +2031,7 @@ impl FromGlib for WebRTCSignalingState { impl StaticType for WebRTCSignalingState { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_webrtc_signaling_state_get_type()) } } } @@ -2053,7 +2050,7 @@ impl glib::value::ValueType for WebRTCSignalingState { type Type = Self; } -unsafe impl<'a> FromValue<'a> for WebRTCSignalingState { +unsafe impl<'a> glib::value::FromValue<'a> for WebRTCSignalingState { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -2175,7 +2172,7 @@ impl FromGlib for WebRTCStatsType { impl StaticType for WebRTCStatsType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_webrtc_stats_type_get_type()) } } } @@ -2194,7 +2191,7 @@ impl glib::value::ValueType for WebRTCStatsType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for WebRTCStatsType { +unsafe impl<'a> glib::value::FromValue<'a> for WebRTCStatsType { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer-webrtc/src/auto/versions.txt b/gstreamer-webrtc/src/auto/versions.txt index 6c0d75e68..7942439dc 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 @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs b/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs index 8ec0e6b7d..461766ab6 100644 --- a/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs +++ b/gstreamer-webrtc/src/auto/web_rtc_data_channel.rs @@ -87,17 +87,17 @@ impl WebRTCDataChannel { #[doc(alias = "buffered-amount")] pub fn buffered_amount(&self) -> u64 { - glib::ObjectExt::property(self, "buffered-amount") + ObjectExt::property(self, "buffered-amount") } #[doc(alias = "buffered-amount-low-threshold")] pub fn buffered_amount_low_threshold(&self) -> u64 { - glib::ObjectExt::property(self, "buffered-amount-low-threshold") + 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) { - glib::ObjectExt::set_property( + ObjectExt::set_property( self, "buffered-amount-low-threshold", buffered_amount_low_threshold, @@ -105,42 +105,42 @@ impl WebRTCDataChannel { } pub fn id(&self) -> i32 { - glib::ObjectExt::property(self, "id") + ObjectExt::property(self, "id") } pub fn label(&self) -> Option { - glib::ObjectExt::property(self, "label") + ObjectExt::property(self, "label") } #[doc(alias = "max-packet-lifetime")] pub fn max_packet_lifetime(&self) -> i32 { - glib::ObjectExt::property(self, "max-packet-lifetime") + ObjectExt::property(self, "max-packet-lifetime") } #[doc(alias = "max-retransmits")] pub fn max_retransmits(&self) -> i32 { - glib::ObjectExt::property(self, "max-retransmits") + ObjectExt::property(self, "max-retransmits") } pub fn is_negotiated(&self) -> bool { - glib::ObjectExt::property(self, "negotiated") + ObjectExt::property(self, "negotiated") } pub fn is_ordered(&self) -> bool { - glib::ObjectExt::property(self, "ordered") + ObjectExt::property(self, "ordered") } pub fn priority(&self) -> WebRTCPriorityType { - glib::ObjectExt::property(self, "priority") + ObjectExt::property(self, "priority") } pub fn protocol(&self) -> Option { - glib::ObjectExt::property(self, "protocol") + ObjectExt::property(self, "protocol") } #[doc(alias = "ready-state")] pub fn ready_state(&self) -> WebRTCDataChannelState { - glib::ObjectExt::property(self, "ready-state") + ObjectExt::property(self, "ready-state") } #[doc(alias = "close")] diff --git a/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs b/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs index 50e42b255..77ccc1d3e 100644 --- a/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs +++ b/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs @@ -22,37 +22,37 @@ glib::wrapper! { impl WebRTCDTLSTransport { pub fn certificate(&self) -> Option { - glib::ObjectExt::property(self, "certificate") + ObjectExt::property(self, "certificate") } pub fn set_certificate(&self, certificate: Option<&str>) { - glib::ObjectExt::set_property(self, "certificate", certificate) + ObjectExt::set_property(self, "certificate", certificate) } pub fn is_client(&self) -> bool { - glib::ObjectExt::property(self, "client") + ObjectExt::property(self, "client") } pub fn set_client(&self, client: bool) { - glib::ObjectExt::set_property(self, "client", client) + ObjectExt::set_property(self, "client", client) } #[doc(alias = "remote-certificate")] pub fn remote_certificate(&self) -> Option { - glib::ObjectExt::property(self, "remote-certificate") + ObjectExt::property(self, "remote-certificate") } #[doc(alias = "session-id")] pub fn session_id(&self) -> u32 { - glib::ObjectExt::property(self, "session-id") + ObjectExt::property(self, "session-id") } pub fn state(&self) -> WebRTCDTLSTransportState { - glib::ObjectExt::property(self, "state") + ObjectExt::property(self, "state") } pub fn transport(&self) -> Option { - glib::ObjectExt::property(self, "transport") + ObjectExt::property(self, "transport") } #[doc(alias = "certificate")] diff --git a/gstreamer-webrtc/src/auto/web_rtcice.rs b/gstreamer-webrtc/src/auto/web_rtcice.rs index 7feb49193..bd399c549 100644 --- a/gstreamer-webrtc/src/auto/web_rtcice.rs +++ b/gstreamer-webrtc/src/auto/web_rtcice.rs @@ -297,28 +297,28 @@ pub trait WebRTCICEExt: IsA + sealed::Sealed + 'static { #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "max-rtp-port")] fn max_rtp_port(&self) -> u32 { - glib::ObjectExt::property(self.as_ref(), "max-rtp-port") + ObjectExt::property(self.as_ref(), "max-rtp-port") } #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "max-rtp-port")] fn set_max_rtp_port(&self, max_rtp_port: u32) { - glib::ObjectExt::set_property(self.as_ref(), "max-rtp-port", max_rtp_port) + ObjectExt::set_property(self.as_ref(), "max-rtp-port", max_rtp_port) } #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "min-rtp-port")] fn min_rtp_port(&self) -> u32 { - glib::ObjectExt::property(self.as_ref(), "min-rtp-port") + ObjectExt::property(self.as_ref(), "min-rtp-port") } #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "min-rtp-port")] fn set_min_rtp_port(&self, min_rtp_port: u32) { - glib::ObjectExt::set_property(self.as_ref(), "min-rtp-port", min_rtp_port) + ObjectExt::set_property(self.as_ref(), "min-rtp-port", min_rtp_port) } #[doc(alias = "add-local-ip-address")] diff --git a/gstreamer-webrtc/src/auto/web_rtcice_stream.rs b/gstreamer-webrtc/src/auto/web_rtcice_stream.rs index fd47a051a..a6d3eaafe 100644 --- a/gstreamer-webrtc/src/auto/web_rtcice_stream.rs +++ b/gstreamer-webrtc/src/auto/web_rtcice_stream.rs @@ -49,7 +49,7 @@ pub trait WebRTCICEStreamExt: IsA + sealed::Sealed + 'static { #[doc(alias = "stream-id")] fn stream_id(&self) -> u32 { - glib::ObjectExt::property(self.as_ref(), "stream-id") + ObjectExt::property(self.as_ref(), "stream-id") } } diff --git a/gstreamer-webrtc/src/auto/web_rtcice_transport.rs b/gstreamer-webrtc/src/auto/web_rtcice_transport.rs index 34e5d1171..316ce72b0 100644 --- a/gstreamer-webrtc/src/auto/web_rtcice_transport.rs +++ b/gstreamer-webrtc/src/auto/web_rtcice_transport.rs @@ -61,16 +61,16 @@ impl WebRTCICETransport { } pub fn component(&self) -> WebRTCICEComponent { - glib::ObjectExt::property(self, "component") + ObjectExt::property(self, "component") } #[doc(alias = "gathering-state")] pub fn gathering_state(&self) -> WebRTCICEGatheringState { - glib::ObjectExt::property(self, "gathering-state") + ObjectExt::property(self, "gathering-state") } pub fn state(&self) -> WebRTCICEConnectionState { - glib::ObjectExt::property(self, "state") + 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 ed5243f33..8ecd749a3 100644 --- a/gstreamer-webrtc/src/auto/web_rtcrtp_receiver.rs +++ b/gstreamer-webrtc/src/auto/web_rtcrtp_receiver.rs @@ -30,7 +30,7 @@ impl WebRTCRTPReceiver { #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn transport(&self) -> Option { - glib::ObjectExt::property(self, "transport") + ObjectExt::property(self, "transport") } #[cfg(feature = "v1_20")] diff --git a/gstreamer-webrtc/src/auto/web_rtcrtp_sender.rs b/gstreamer-webrtc/src/auto/web_rtcrtp_sender.rs index 8c87c4f91..89a25157c 100644 --- a/gstreamer-webrtc/src/auto/web_rtcrtp_sender.rs +++ b/gstreamer-webrtc/src/auto/web_rtcrtp_sender.rs @@ -39,13 +39,13 @@ impl WebRTCRTPSender { #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn priority(&self) -> WebRTCPriorityType { - glib::ObjectExt::property(self, "priority") + ObjectExt::property(self, "priority") } #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn transport(&self) -> Option { - glib::ObjectExt::property(self, "transport") + ObjectExt::property(self, "transport") } #[cfg(feature = "v1_20")] diff --git a/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs b/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs index ba56573cf..c8d58c8ec 100644 --- a/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs +++ b/gstreamer-webrtc/src/auto/web_rtcrtp_transceiver.rs @@ -32,57 +32,57 @@ impl WebRTCRTPTransceiver { #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "codec-preferences")] pub fn codec_preferences(&self) -> Option { - glib::ObjectExt::property(self, "codec-preferences") + ObjectExt::property(self, "codec-preferences") } #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "codec-preferences")] pub fn set_codec_preferences(&self, codec_preferences: Option<&gst::Caps>) { - glib::ObjectExt::set_property(self, "codec-preferences", codec_preferences) + ObjectExt::set_property(self, "codec-preferences", codec_preferences) } #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] #[doc(alias = "current-direction")] pub fn current_direction(&self) -> WebRTCRTPTransceiverDirection { - glib::ObjectExt::property(self, "current-direction") + ObjectExt::property(self, "current-direction") } #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn direction(&self) -> WebRTCRTPTransceiverDirection { - glib::ObjectExt::property(self, "direction") + ObjectExt::property(self, "direction") } #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] pub fn set_direction(&self, direction: WebRTCRTPTransceiverDirection) { - glib::ObjectExt::set_property(self, "direction", direction) + ObjectExt::set_property(self, "direction", direction) } #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn kind(&self) -> WebRTCKind { - glib::ObjectExt::property(self, "kind") + ObjectExt::property(self, "kind") } #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] pub fn mid(&self) -> Option { - glib::ObjectExt::property(self, "mid") + ObjectExt::property(self, "mid") } pub fn mlineindex(&self) -> u32 { - glib::ObjectExt::property(self, "mlineindex") + ObjectExt::property(self, "mlineindex") } pub fn receiver(&self) -> Option { - glib::ObjectExt::property(self, "receiver") + ObjectExt::property(self, "receiver") } pub fn sender(&self) -> Option { - glib::ObjectExt::property(self, "sender") + ObjectExt::property(self, "sender") } #[cfg(feature = "v1_20")] diff --git a/gstreamer-webrtc/src/auto/web_rtcsctp_transport.rs b/gstreamer-webrtc/src/auto/web_rtcsctp_transport.rs index 8b86539f3..97c38378e 100644 --- a/gstreamer-webrtc/src/auto/web_rtcsctp_transport.rs +++ b/gstreamer-webrtc/src/auto/web_rtcsctp_transport.rs @@ -23,20 +23,20 @@ glib::wrapper! { impl WebRTCSCTPTransport { #[doc(alias = "max-channels")] pub fn max_channels(&self) -> u32 { - glib::ObjectExt::property(self, "max-channels") + ObjectExt::property(self, "max-channels") } #[doc(alias = "max-message-size")] pub fn max_message_size(&self) -> u64 { - glib::ObjectExt::property(self, "max-message-size") + ObjectExt::property(self, "max-message-size") } pub fn state(&self) -> WebRTCSCTPTransportState { - glib::ObjectExt::property(self, "state") + ObjectExt::property(self, "state") } pub fn transport(&self) -> Option { - glib::ObjectExt::property(self, "transport") + ObjectExt::property(self, "transport") } #[doc(alias = "max-channels")] diff --git a/gstreamer-webrtc/sys/src/auto/versions.txt b/gstreamer-webrtc/sys/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer-webrtc/sys/src/auto/versions.txt +++ b/gstreamer-webrtc/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer/src/auto/bin.rs b/gstreamer/src/auto/bin.rs index 7bf682355..120bc904e 100644 --- a/gstreamer/src/auto/bin.rs +++ b/gstreamer/src/auto/bin.rs @@ -141,22 +141,22 @@ pub trait GstBinExt: IsA + sealed::Sealed + 'static { #[doc(alias = "async-handling")] fn is_async_handling(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "async-handling") + ObjectExt::property(self.as_ref(), "async-handling") } #[doc(alias = "async-handling")] fn set_async_handling(&self, async_handling: bool) { - glib::ObjectExt::set_property(self.as_ref(), "async-handling", async_handling) + ObjectExt::set_property(self.as_ref(), "async-handling", async_handling) } #[doc(alias = "message-forward")] fn is_message_forward(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "message-forward") + ObjectExt::property(self.as_ref(), "message-forward") } #[doc(alias = "message-forward")] fn set_message_forward(&self, message_forward: bool) { - glib::ObjectExt::set_property(self.as_ref(), "message-forward", message_forward) + ObjectExt::set_property(self.as_ref(), "message-forward", message_forward) } #[doc(alias = "deep-element-added")] diff --git a/gstreamer/src/auto/clock.rs b/gstreamer/src/auto/clock.rs index da06d3774..d8a2c2b9f 100644 --- a/gstreamer/src/auto/clock.rs +++ b/gstreamer/src/auto/clock.rs @@ -301,22 +301,22 @@ pub trait ClockExt: IsA + sealed::Sealed + 'static { #[doc(alias = "window-size")] fn window_size(&self) -> i32 { - glib::ObjectExt::property(self.as_ref(), "window-size") + ObjectExt::property(self.as_ref(), "window-size") } #[doc(alias = "window-size")] fn set_window_size(&self, window_size: i32) { - glib::ObjectExt::set_property(self.as_ref(), "window-size", window_size) + ObjectExt::set_property(self.as_ref(), "window-size", window_size) } #[doc(alias = "window-threshold")] fn window_threshold(&self) -> i32 { - glib::ObjectExt::property(self.as_ref(), "window-threshold") + ObjectExt::property(self.as_ref(), "window-threshold") } #[doc(alias = "window-threshold")] fn set_window_threshold(&self, window_threshold: i32) { - glib::ObjectExt::set_property(self.as_ref(), "window-threshold", window_threshold) + ObjectExt::set_property(self.as_ref(), "window-threshold", window_threshold) } #[doc(alias = "synced")] diff --git a/gstreamer/src/auto/control_binding.rs b/gstreamer/src/auto/control_binding.rs index 9220d7438..b9ddb8cd8 100644 --- a/gstreamer/src/auto/control_binding.rs +++ b/gstreamer/src/auto/control_binding.rs @@ -82,7 +82,7 @@ pub trait ControlBindingExt: IsA + sealed::Sealed + 'static { } fn object(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "object") + ObjectExt::property(self.as_ref(), "object") } } diff --git a/gstreamer/src/auto/device_monitor.rs b/gstreamer/src/auto/device_monitor.rs index c2ae9609f..c92d91e74 100644 --- a/gstreamer/src/auto/device_monitor.rs +++ b/gstreamer/src/auto/device_monitor.rs @@ -104,12 +104,12 @@ pub trait DeviceMonitorExt: IsA + sealed::Sealed + 'static { #[doc(alias = "show-all")] fn shows_all(&self) -> bool { - glib::ObjectExt::property(self.as_ref(), "show-all") + ObjectExt::property(self.as_ref(), "show-all") } #[doc(alias = "show-all")] fn set_show_all(&self, show_all: bool) { - glib::ObjectExt::set_property(self.as_ref(), "show-all", show_all) + ObjectExt::set_property(self.as_ref(), "show-all", show_all) } #[doc(alias = "show-all")] diff --git a/gstreamer/src/auto/enums.rs b/gstreamer/src/auto/enums.rs index 30998fde5..ecf44a1ea 100644 --- a/gstreamer/src/auto/enums.rs +++ b/gstreamer/src/auto/enums.rs @@ -4,10 +4,7 @@ // DO NOT EDIT use crate::EventTypeFlags; -use glib::{ - error::ErrorDomain, translate::*, value::FromValue, value::ToValue, GStr, Quark, StaticType, - Type, -}; +use glib::{prelude::*, translate::*, GStr}; use std::fmt; #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)] @@ -60,7 +57,7 @@ impl FromGlib for BufferingMode { impl StaticType for BufferingMode { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_buffering_mode_get_type()) } } } @@ -79,7 +76,7 @@ impl glib::value::ValueType for BufferingMode { type Type = Self; } -unsafe impl<'a> FromValue<'a> for BufferingMode { +unsafe impl<'a> glib::value::FromValue<'a> for BufferingMode { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -148,7 +145,7 @@ impl FromGlib for BusSyncReply { impl StaticType for BusSyncReply { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_bus_sync_reply_get_type()) } } } @@ -167,7 +164,7 @@ impl glib::value::ValueType for BusSyncReply { type Type = Self; } -unsafe impl<'a> FromValue<'a> for BusSyncReply { +unsafe impl<'a> glib::value::FromValue<'a> for BusSyncReply { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -243,7 +240,7 @@ impl FromGlib for CapsIntersectMode { impl StaticType for CapsIntersectMode { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_caps_intersect_mode_get_type()) } } } @@ -262,7 +259,7 @@ impl glib::value::ValueType for CapsIntersectMode { type Type = Self; } -unsafe impl<'a> FromValue<'a> for CapsIntersectMode { +unsafe impl<'a> glib::value::FromValue<'a> for CapsIntersectMode { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -338,7 +335,7 @@ impl FromGlib for ClockEntryType { impl StaticType for ClockEntryType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_clock_entry_type_get_type()) } } } @@ -357,7 +354,7 @@ impl glib::value::ValueType for ClockEntryType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for ClockEntryType { +unsafe impl<'a> glib::value::FromValue<'a> for ClockEntryType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -447,7 +444,7 @@ impl FromGlib for ClockReturn { impl StaticType for ClockReturn { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_clock_return_get_type()) } } } @@ -466,7 +463,7 @@ impl glib::value::ValueType for ClockReturn { type Type = Self; } -unsafe impl<'a> FromValue<'a> for ClockReturn { +unsafe impl<'a> glib::value::FromValue<'a> for ClockReturn { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -554,7 +551,7 @@ impl FromGlib for ClockType { impl StaticType for ClockType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_clock_type_get_type()) } } } @@ -573,7 +570,7 @@ impl glib::value::ValueType for ClockType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for ClockType { +unsafe impl<'a> glib::value::FromValue<'a> for ClockType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -693,9 +690,9 @@ impl FromGlib for CoreError { } } -impl ErrorDomain for CoreError { +impl glib::error::ErrorDomain for CoreError { #[inline] - fn domain() -> Quark { + fn domain() -> glib::Quark { skip_assert_initialized!(); unsafe { from_glib(ffi::gst_core_error_quark()) } @@ -719,7 +716,7 @@ impl ErrorDomain for CoreError { impl StaticType for CoreError { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_core_error_get_type()) } } } @@ -738,7 +735,7 @@ impl glib::value::ValueType for CoreError { type Type = Self; } -unsafe impl<'a> FromValue<'a> for CoreError { +unsafe impl<'a> glib::value::FromValue<'a> for CoreError { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -861,7 +858,7 @@ impl FromGlib for DebugLevel { impl StaticType for DebugLevel { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_debug_level_get_type()) } } } @@ -880,7 +877,7 @@ impl glib::value::ValueType for DebugLevel { type Type = Self; } -unsafe impl<'a> FromValue<'a> for DebugLevel { +unsafe impl<'a> glib::value::FromValue<'a> for DebugLevel { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1114,7 +1111,7 @@ impl FromGlib for EventType { impl StaticType for EventType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_event_type_get_type()) } } } @@ -1133,7 +1130,7 @@ impl glib::value::ValueType for EventType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for EventType { +unsafe impl<'a> glib::value::FromValue<'a> for EventType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1259,7 +1256,7 @@ impl FromGlib for Format { impl StaticType for Format { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_format_get_type()) } } } @@ -1278,7 +1275,7 @@ impl glib::value::ValueType for Format { type Type = Self; } -unsafe impl<'a> FromValue<'a> for Format { +unsafe impl<'a> glib::value::FromValue<'a> for Format { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1368,9 +1365,9 @@ impl FromGlib for LibraryError { } } -impl ErrorDomain for LibraryError { +impl glib::error::ErrorDomain for LibraryError { #[inline] - fn domain() -> Quark { + fn domain() -> glib::Quark { skip_assert_initialized!(); unsafe { from_glib(ffi::gst_library_error_quark()) } @@ -1394,7 +1391,7 @@ impl ErrorDomain for LibraryError { impl StaticType for LibraryError { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_library_error_get_type()) } } } @@ -1413,7 +1410,7 @@ impl glib::value::ValueType for LibraryError { type Type = Self; } -unsafe impl<'a> FromValue<'a> for LibraryError { +unsafe impl<'a> glib::value::FromValue<'a> for LibraryError { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1483,7 +1480,7 @@ impl FromGlib for PadDirection { impl StaticType for PadDirection { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_pad_direction_get_type()) } } } @@ -1502,7 +1499,7 @@ impl glib::value::ValueType for PadDirection { type Type = Self; } -unsafe impl<'a> FromValue<'a> for PadDirection { +unsafe impl<'a> glib::value::FromValue<'a> for PadDirection { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1595,7 +1592,7 @@ impl FromGlib for PadMode { impl StaticType for PadMode { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_pad_mode_get_type()) } } } @@ -1614,7 +1611,7 @@ impl glib::value::ValueType for PadMode { type Type = Self; } -unsafe impl<'a> FromValue<'a> for PadMode { +unsafe impl<'a> glib::value::FromValue<'a> for PadMode { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1689,7 +1686,7 @@ impl FromGlib for PadPresence { impl StaticType for PadPresence { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_pad_presence_get_type()) } } } @@ -1708,7 +1705,7 @@ impl glib::value::ValueType for PadPresence { type Type = Self; } -unsafe impl<'a> FromValue<'a> for PadPresence { +unsafe impl<'a> glib::value::FromValue<'a> for PadPresence { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1788,7 +1785,7 @@ impl FromGlib for PadProbeReturn { impl StaticType for PadProbeReturn { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_pad_probe_return_get_type()) } } } @@ -1807,7 +1804,7 @@ impl glib::value::ValueType for PadProbeReturn { type Type = Self; } -unsafe impl<'a> FromValue<'a> for PadProbeReturn { +unsafe impl<'a> glib::value::FromValue<'a> for PadProbeReturn { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1905,9 +1902,9 @@ impl FromGlib for ParseError { } } -impl ErrorDomain for ParseError { +impl glib::error::ErrorDomain for ParseError { #[inline] - fn domain() -> Quark { + fn domain() -> glib::Quark { skip_assert_initialized!(); unsafe { from_glib(ffi::gst_parse_error_quark()) } @@ -1930,7 +1927,7 @@ impl ErrorDomain for ParseError { impl StaticType for ParseError { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_parse_error_get_type()) } } } @@ -1949,7 +1946,7 @@ impl glib::value::ValueType for ParseError { type Type = Self; } -unsafe impl<'a> FromValue<'a> for ParseError { +unsafe impl<'a> glib::value::FromValue<'a> for ParseError { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -2027,9 +2024,9 @@ impl FromGlib for PluginError { } } -impl ErrorDomain for PluginError { +impl glib::error::ErrorDomain for PluginError { #[inline] - fn domain() -> Quark { + fn domain() -> glib::Quark { skip_assert_initialized!(); unsafe { from_glib(ffi::gst_plugin_error_quark()) } @@ -2052,7 +2049,7 @@ impl ErrorDomain for PluginError { impl StaticType for PluginError { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_plugin_error_get_type()) } } } @@ -2071,7 +2068,7 @@ impl glib::value::ValueType for PluginError { type Type = Self; } -unsafe impl<'a> FromValue<'a> for PluginError { +unsafe impl<'a> glib::value::FromValue<'a> for PluginError { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -2159,7 +2156,7 @@ impl FromGlib for ProgressType { impl StaticType for ProgressType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_progress_type_get_type()) } } } @@ -2178,7 +2175,7 @@ impl glib::value::ValueType for ProgressType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for ProgressType { +unsafe impl<'a> glib::value::FromValue<'a> for ProgressType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -2262,7 +2259,7 @@ impl FromGlib for PromiseResult { impl StaticType for PromiseResult { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_promise_result_get_type()) } } } @@ -2281,7 +2278,7 @@ impl glib::value::ValueType for PromiseResult { type Type = Self; } -unsafe impl<'a> FromValue<'a> for PromiseResult { +unsafe impl<'a> glib::value::FromValue<'a> for PromiseResult { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -2361,7 +2358,7 @@ impl FromGlib for QOSType { impl StaticType for QOSType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_qos_type_get_type()) } } } @@ -2380,7 +2377,7 @@ impl glib::value::ValueType for QOSType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for QOSType { +unsafe impl<'a> glib::value::FromValue<'a> for QOSType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -2465,7 +2462,7 @@ impl FromGlib for Rank { impl StaticType for Rank { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_rank_get_type()) } } } @@ -2484,7 +2481,7 @@ impl glib::value::ValueType for Rank { type Type = Self; } -unsafe impl<'a> FromValue<'a> for Rank { +unsafe impl<'a> glib::value::FromValue<'a> for Rank { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -2608,9 +2605,9 @@ impl FromGlib for ResourceError { } } -impl ErrorDomain for ResourceError { +impl glib::error::ErrorDomain for ResourceError { #[inline] - fn domain() -> Quark { + fn domain() -> glib::Quark { skip_assert_initialized!(); unsafe { from_glib(ffi::gst_resource_error_quark()) } @@ -2634,7 +2631,7 @@ impl ErrorDomain for ResourceError { impl StaticType for ResourceError { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_resource_error_get_type()) } } } @@ -2653,7 +2650,7 @@ impl glib::value::ValueType for ResourceError { type Type = Self; } -unsafe impl<'a> FromValue<'a> for ResourceError { +unsafe impl<'a> glib::value::FromValue<'a> for ResourceError { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -2727,7 +2724,7 @@ impl FromGlib for SeekType { impl StaticType for SeekType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_seek_type_get_type()) } } } @@ -2746,7 +2743,7 @@ impl glib::value::ValueType for SeekType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for SeekType { +unsafe impl<'a> glib::value::FromValue<'a> for SeekType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -2827,7 +2824,7 @@ impl FromGlib for State { impl StaticType for State { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_state_get_type()) } } } @@ -2846,7 +2843,7 @@ impl glib::value::ValueType for State { type Type = Self; } -unsafe impl<'a> FromValue<'a> for State { +unsafe impl<'a> glib::value::FromValue<'a> for State { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -2960,7 +2957,7 @@ impl FromGlib for StateChange { impl StaticType for StateChange { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_state_change_get_type()) } } } @@ -2979,7 +2976,7 @@ impl glib::value::ValueType for StateChange { type Type = Self; } -unsafe impl<'a> FromValue<'a> for StateChange { +unsafe impl<'a> glib::value::FromValue<'a> for StateChange { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -3057,7 +3054,7 @@ impl FromGlib for StateChangeReturn { impl StaticType for StateChangeReturn { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_state_change_return_get_type()) } } } @@ -3076,7 +3073,7 @@ impl glib::value::ValueType for StateChangeReturn { type Type = Self; } -unsafe impl<'a> FromValue<'a> for StateChangeReturn { +unsafe impl<'a> glib::value::FromValue<'a> for StateChangeReturn { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -3192,9 +3189,9 @@ impl FromGlib for StreamError { } } -impl ErrorDomain for StreamError { +impl glib::error::ErrorDomain for StreamError { #[inline] - fn domain() -> Quark { + fn domain() -> glib::Quark { skip_assert_initialized!(); unsafe { from_glib(ffi::gst_stream_error_quark()) } @@ -3218,7 +3215,7 @@ impl ErrorDomain for StreamError { impl StaticType for StreamError { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_stream_error_get_type()) } } } @@ -3237,7 +3234,7 @@ impl glib::value::ValueType for StreamError { type Type = Self; } -unsafe impl<'a> FromValue<'a> for StreamError { +unsafe impl<'a> glib::value::FromValue<'a> for StreamError { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -3333,7 +3330,7 @@ impl FromGlib for StreamStatusType { impl StaticType for StreamStatusType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_stream_status_type_get_type()) } } } @@ -3352,7 +3349,7 @@ impl glib::value::ValueType for StreamStatusType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for StreamStatusType { +unsafe impl<'a> glib::value::FromValue<'a> for StreamStatusType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -3428,7 +3425,7 @@ impl FromGlib for StructureChangeType { impl StaticType for StructureChangeType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_structure_change_type_get_type()) } } } @@ -3447,7 +3444,7 @@ impl glib::value::ValueType for StructureChangeType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for StructureChangeType { +unsafe impl<'a> glib::value::FromValue<'a> for StructureChangeType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -3531,7 +3528,7 @@ impl FromGlib for TagFlag { impl StaticType for TagFlag { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_tag_flag_get_type()) } } } @@ -3550,7 +3547,7 @@ impl glib::value::ValueType for TagFlag { type Type = Self; } -unsafe impl<'a> FromValue<'a> for TagFlag { +unsafe impl<'a> glib::value::FromValue<'a> for TagFlag { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -3646,7 +3643,7 @@ impl FromGlib for TagMergeMode { impl StaticType for TagMergeMode { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_tag_merge_mode_get_type()) } } } @@ -3665,7 +3662,7 @@ impl glib::value::ValueType for TagMergeMode { type Type = Self; } -unsafe impl<'a> FromValue<'a> for TagMergeMode { +unsafe impl<'a> glib::value::FromValue<'a> for TagMergeMode { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -3742,7 +3739,7 @@ impl FromGlib for TagScope { impl StaticType for TagScope { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_tag_scope_get_type()) } } } @@ -3761,7 +3758,7 @@ impl glib::value::ValueType for TagScope { type Type = Self; } -unsafe impl<'a> FromValue<'a> for TagScope { +unsafe impl<'a> glib::value::FromValue<'a> for TagScope { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -3841,7 +3838,7 @@ impl FromGlib for TaskState { impl StaticType for TaskState { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_task_state_get_type()) } } } @@ -3860,7 +3857,7 @@ impl glib::value::ValueType for TaskState { type Type = Self; } -unsafe impl<'a> FromValue<'a> for TaskState { +unsafe impl<'a> glib::value::FromValue<'a> for TaskState { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -3969,7 +3966,7 @@ impl FromGlib for TocEntryType { impl StaticType for TocEntryType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_toc_entry_type_get_type()) } } } @@ -3988,7 +3985,7 @@ impl glib::value::ValueType for TocEntryType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for TocEntryType { +unsafe impl<'a> glib::value::FromValue<'a> for TocEntryType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -4073,7 +4070,7 @@ impl FromGlib for TocLoopType { impl StaticType for TocLoopType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_toc_loop_type_get_type()) } } } @@ -4092,7 +4089,7 @@ impl glib::value::ValueType for TocLoopType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for TocLoopType { +unsafe impl<'a> glib::value::FromValue<'a> for TocLoopType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -4169,7 +4166,7 @@ impl FromGlib for TocScope { impl StaticType for TocScope { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_toc_scope_get_type()) } } } @@ -4188,7 +4185,7 @@ impl glib::value::ValueType for TocScope { type Type = Self; } -unsafe impl<'a> FromValue<'a> for TocScope { +unsafe impl<'a> glib::value::FromValue<'a> for TocScope { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -4280,7 +4277,7 @@ impl FromGlib for TypeFindProbability { impl StaticType for TypeFindProbability { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_type_find_probability_get_type()) } } } @@ -4299,7 +4296,7 @@ impl glib::value::ValueType for TypeFindProbability { type Type = Self; } -unsafe impl<'a> FromValue<'a> for TypeFindProbability { +unsafe impl<'a> glib::value::FromValue<'a> for TypeFindProbability { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -4381,9 +4378,9 @@ impl FromGlib for URIError { } } -impl ErrorDomain for URIError { +impl glib::error::ErrorDomain for URIError { #[inline] - fn domain() -> Quark { + fn domain() -> glib::Quark { skip_assert_initialized!(); unsafe { from_glib(ffi::gst_uri_error_quark()) } @@ -4406,7 +4403,7 @@ impl ErrorDomain for URIError { impl StaticType for URIError { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_uri_error_get_type()) } } } @@ -4425,7 +4422,7 @@ impl glib::value::ValueType for URIError { type Type = Self; } -unsafe impl<'a> FromValue<'a> for URIError { +unsafe impl<'a> glib::value::FromValue<'a> for URIError { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -4495,7 +4492,7 @@ impl FromGlib for URIType { impl StaticType for URIType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_uri_type_get_type()) } } } @@ -4514,7 +4511,7 @@ impl glib::value::ValueType for URIType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for URIType { +unsafe impl<'a> glib::value::FromValue<'a> for URIType { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer/src/auto/flags.rs b/gstreamer/src/auto/flags.rs index 9d45dcf43..c7bbbd04c 100644 --- a/gstreamer/src/auto/flags.rs +++ b/gstreamer/src/auto/flags.rs @@ -3,11 +3,11 @@ // from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git) // DO NOT EDIT -use bitflags::bitflags; -use glib::{translate::*, value::FromValue, value::ToValue, GStr, StaticType, Type}; +use glib::{bitflags::bitflags, prelude::*, translate::*, GStr}; use std::fmt; bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstBinFlags")] pub struct BinFlags: u32 { #[doc(alias = "GST_BIN_FLAG_NO_RESYNC")] @@ -38,7 +38,7 @@ impl FromGlib for BinFlags { impl StaticType for BinFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_bin_flags_get_type()) } } } @@ -57,7 +57,7 @@ impl glib::value::ValueType for BinFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for BinFlags { +unsafe impl<'a> glib::value::FromValue<'a> for BinFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -92,6 +92,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstBufferCopyFlags")] pub struct BufferCopyFlags: u32 { #[doc(alias = "GST_BUFFER_COPY_FLAGS")] @@ -130,7 +131,7 @@ impl FromGlib for BufferCopyFlags { impl StaticType for BufferCopyFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_buffer_copy_flags_get_type()) } } } @@ -149,7 +150,7 @@ impl glib::value::ValueType for BufferCopyFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for BufferCopyFlags { +unsafe impl<'a> glib::value::FromValue<'a> for BufferCopyFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -184,6 +185,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstBufferFlags")] pub struct BufferFlags: u32 { #[doc(alias = "GST_BUFFER_FLAG_LIVE")] @@ -236,7 +238,7 @@ impl FromGlib for BufferFlags { impl StaticType for BufferFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_buffer_flags_get_type()) } } } @@ -255,7 +257,7 @@ impl glib::value::ValueType for BufferFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for BufferFlags { +unsafe impl<'a> glib::value::FromValue<'a> for BufferFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -290,6 +292,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstBufferPoolAcquireFlags")] pub struct BufferPoolAcquireFlags: u32 { #[doc(alias = "GST_BUFFER_POOL_ACQUIRE_FLAG_KEY_UNIT")] @@ -322,7 +325,7 @@ impl FromGlib for BufferPoolAcquireFlags { impl StaticType for BufferPoolAcquireFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_buffer_pool_acquire_flags_get_type()) } } } @@ -341,7 +344,7 @@ impl glib::value::ValueType for BufferPoolAcquireFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for BufferPoolAcquireFlags { +unsafe impl<'a> glib::value::FromValue<'a> for BufferPoolAcquireFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -376,6 +379,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstClockFlags")] pub struct ClockFlags: u32 { #[doc(alias = "GST_CLOCK_FLAG_CAN_DO_SINGLE_SYNC")] @@ -416,7 +420,7 @@ impl FromGlib for ClockFlags { impl StaticType for ClockFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_clock_flags_get_type()) } } } @@ -435,7 +439,7 @@ impl glib::value::ValueType for ClockFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for ClockFlags { +unsafe impl<'a> glib::value::FromValue<'a> for ClockFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -470,6 +474,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstDebugColorFlags")] pub struct DebugColorFlags: u32 { #[doc(alias = "GST_DEBUG_FG_BLACK")] @@ -532,7 +537,7 @@ impl FromGlib for DebugColorFlags { impl StaticType for DebugColorFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_debug_color_flags_get_type()) } } } @@ -551,7 +556,7 @@ impl glib::value::ValueType for DebugColorFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for DebugColorFlags { +unsafe impl<'a> glib::value::FromValue<'a> for DebugColorFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -586,6 +591,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstDebugGraphDetails")] pub struct DebugGraphDetails: u32 { #[doc(alias = "GST_DEBUG_GRAPH_SHOW_MEDIA_TYPE")] @@ -626,7 +632,7 @@ impl FromGlib for DebugGraphDetails { impl StaticType for DebugGraphDetails { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_debug_graph_details_get_type()) } } } @@ -645,7 +651,7 @@ impl glib::value::ValueType for DebugGraphDetails { type Type = Self; } -unsafe impl<'a> FromValue<'a> for DebugGraphDetails { +unsafe impl<'a> glib::value::FromValue<'a> for DebugGraphDetails { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -680,6 +686,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstElementFlags")] pub struct ElementFlags: u32 { #[doc(alias = "GST_ELEMENT_FLAG_LOCKED_STATE")] @@ -718,7 +725,7 @@ impl FromGlib for ElementFlags { impl StaticType for ElementFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_element_flags_get_type()) } } } @@ -737,7 +744,7 @@ impl glib::value::ValueType for ElementFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for ElementFlags { +unsafe impl<'a> glib::value::FromValue<'a> for ElementFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -772,6 +779,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstEventTypeFlags")] pub struct EventTypeFlags: u32 { #[doc(alias = "GST_EVENT_TYPE_UPSTREAM")] @@ -808,7 +816,7 @@ impl FromGlib for EventTypeFlags { impl StaticType for EventTypeFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_event_type_flags_get_type()) } } } @@ -827,7 +835,7 @@ impl glib::value::ValueType for EventTypeFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for EventTypeFlags { +unsafe impl<'a> glib::value::FromValue<'a> for EventTypeFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -864,6 +872,7 @@ impl From for glib::Value { #[cfg(feature = "v1_20")] bitflags! { #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstGapFlags")] pub struct GapFlags: u32 { #[doc(alias = "GST_GAP_FLAG_MISSING_DATA")] @@ -898,7 +907,7 @@ impl FromGlib for GapFlags { #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for GapFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_gap_flags_get_type()) } } } @@ -923,7 +932,7 @@ impl glib::value::ValueType for GapFlags { #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] -unsafe impl<'a> FromValue<'a> for GapFlags { +unsafe impl<'a> glib::value::FromValue<'a> for GapFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -962,6 +971,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstMemoryFlags")] pub struct MemoryFlags: u32 { #[doc(alias = "GST_MEMORY_FLAG_READONLY")] @@ -1000,7 +1010,7 @@ impl FromGlib for MemoryFlags { impl StaticType for MemoryFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_memory_flags_get_type()) } } } @@ -1019,7 +1029,7 @@ impl glib::value::ValueType for MemoryFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for MemoryFlags { +unsafe impl<'a> glib::value::FromValue<'a> for MemoryFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1054,6 +1064,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstMetaFlags")] pub struct MetaFlags: u32 { #[doc(alias = "GST_META_FLAG_READONLY")] @@ -1086,7 +1097,7 @@ impl FromGlib for MetaFlags { impl StaticType for MetaFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_meta_flags_get_type()) } } } @@ -1105,7 +1116,7 @@ impl glib::value::ValueType for MetaFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for MetaFlags { +unsafe impl<'a> glib::value::FromValue<'a> for MetaFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1140,6 +1151,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstObjectFlags")] pub struct ObjectFlags: u32 { #[doc(alias = "GST_OBJECT_FLAG_MAY_BE_LEAKED")] @@ -1168,7 +1180,7 @@ impl FromGlib for ObjectFlags { impl StaticType for ObjectFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_object_flags_get_type()) } } } @@ -1187,7 +1199,7 @@ impl glib::value::ValueType for ObjectFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for ObjectFlags { +unsafe impl<'a> glib::value::FromValue<'a> for ObjectFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1222,6 +1234,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstPadFlags")] pub struct PadFlags: u32 { #[doc(alias = "GST_PAD_FLAG_BLOCKED")] @@ -1274,7 +1287,7 @@ impl FromGlib for PadFlags { impl StaticType for PadFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_pad_flags_get_type()) } } } @@ -1293,7 +1306,7 @@ impl glib::value::ValueType for PadFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for PadFlags { +unsafe impl<'a> glib::value::FromValue<'a> for PadFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1328,6 +1341,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstPadLinkCheck")] pub struct PadLinkCheck: u32 { #[doc(alias = "GST_PAD_LINK_CHECK_HIERARCHY")] @@ -1364,7 +1378,7 @@ impl FromGlib for PadLinkCheck { impl StaticType for PadLinkCheck { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_pad_link_check_get_type()) } } } @@ -1383,7 +1397,7 @@ impl glib::value::ValueType for PadLinkCheck { type Type = Self; } -unsafe impl<'a> FromValue<'a> for PadLinkCheck { +unsafe impl<'a> glib::value::FromValue<'a> for PadLinkCheck { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1418,6 +1432,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstPadProbeType")] pub struct PadProbeType: u32 { #[doc(alias = "GST_PAD_PROBE_TYPE_IDLE")] @@ -1486,7 +1501,7 @@ impl FromGlib for PadProbeType { impl StaticType for PadProbeType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_pad_probe_type_get_type()) } } } @@ -1505,7 +1520,7 @@ impl glib::value::ValueType for PadProbeType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for PadProbeType { +unsafe impl<'a> glib::value::FromValue<'a> for PadProbeType { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1540,6 +1555,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstParseFlags")] pub struct ParseFlags: u32 { #[doc(alias = "GST_PARSE_FLAG_FATAL_ERRORS")] @@ -1572,7 +1588,7 @@ impl FromGlib for ParseFlags { impl StaticType for ParseFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_parse_flags_get_type()) } } } @@ -1591,7 +1607,7 @@ impl glib::value::ValueType for ParseFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for ParseFlags { +unsafe impl<'a> glib::value::FromValue<'a> for ParseFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1626,6 +1642,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstPipelineFlags")] pub struct PipelineFlags: u32 { #[doc(alias = "GST_PIPELINE_FLAG_FIXED_CLOCK")] @@ -1654,7 +1671,7 @@ impl FromGlib for PipelineFlags { impl StaticType for PipelineFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_pipeline_flags_get_type()) } } } @@ -1673,7 +1690,7 @@ impl glib::value::ValueType for PipelineFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for PipelineFlags { +unsafe impl<'a> glib::value::FromValue<'a> for PipelineFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1710,6 +1727,7 @@ impl From for glib::Value { #[cfg(feature = "v1_18")] bitflags! { #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstPluginAPIFlags")] pub struct PluginAPIFlags: u32 { #[doc(alias = "GST_PLUGIN_API_FLAG_IGNORE_ENUM_MEMBERS")] @@ -1744,7 +1762,7 @@ impl FromGlib for PluginAPIFlags { #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] impl StaticType for PluginAPIFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_plugin_api_flags_get_type()) } } } @@ -1769,7 +1787,7 @@ impl glib::value::ValueType for PluginAPIFlags { #[cfg(feature = "v1_18")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))] -unsafe impl<'a> FromValue<'a> for PluginAPIFlags { +unsafe impl<'a> glib::value::FromValue<'a> for PluginAPIFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1808,6 +1826,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstPluginDependencyFlags")] pub struct PluginDependencyFlags: u32 { #[doc(alias = "GST_PLUGIN_DEPENDENCY_FLAG_RECURSE")] @@ -1844,7 +1863,7 @@ impl FromGlib for PluginDependencyFlags { impl StaticType for PluginDependencyFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_plugin_dependency_flags_get_type()) } } } @@ -1863,7 +1882,7 @@ impl glib::value::ValueType for PluginDependencyFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for PluginDependencyFlags { +unsafe impl<'a> glib::value::FromValue<'a> for PluginDependencyFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1898,6 +1917,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstPluginFlags")] pub struct PluginFlags: u32 { #[doc(alias = "GST_PLUGIN_FLAG_CACHED")] @@ -1928,7 +1948,7 @@ impl FromGlib for PluginFlags { impl StaticType for PluginFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_plugin_flags_get_type()) } } } @@ -1947,7 +1967,7 @@ impl glib::value::ValueType for PluginFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for PluginFlags { +unsafe impl<'a> glib::value::FromValue<'a> for PluginFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -1982,6 +2002,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstSchedulingFlags")] pub struct SchedulingFlags: u32 { #[doc(alias = "GST_SCHEDULING_FLAG_SEEKABLE")] @@ -2014,7 +2035,7 @@ impl FromGlib for SchedulingFlags { impl StaticType for SchedulingFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_scheduling_flags_get_type()) } } } @@ -2033,7 +2054,7 @@ impl glib::value::ValueType for SchedulingFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for SchedulingFlags { +unsafe impl<'a> glib::value::FromValue<'a> for SchedulingFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -2068,6 +2089,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstSeekFlags")] pub struct SeekFlags: u32 { #[doc(alias = "GST_SEEK_FLAG_FLUSH")] @@ -2124,7 +2146,7 @@ impl FromGlib for SeekFlags { impl StaticType for SeekFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_seek_flags_get_type()) } } } @@ -2143,7 +2165,7 @@ impl glib::value::ValueType for SeekFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for SeekFlags { +unsafe impl<'a> glib::value::FromValue<'a> for SeekFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -2178,6 +2200,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstSegmentFlags")] pub struct SegmentFlags: u32 { #[doc(alias = "GST_SEGMENT_FLAG_RESET")] @@ -2220,7 +2243,7 @@ impl FromGlib for SegmentFlags { impl StaticType for SegmentFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_segment_flags_get_type()) } } } @@ -2239,7 +2262,7 @@ impl glib::value::ValueType for SegmentFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for SegmentFlags { +unsafe impl<'a> glib::value::FromValue<'a> for SegmentFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -2276,6 +2299,7 @@ impl From for glib::Value { #[cfg(feature = "v1_20")] bitflags! { #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstSerializeFlags")] pub struct SerializeFlags: u32 { #[doc(alias = "GST_SERIALIZE_FLAG_NONE")] @@ -2312,7 +2336,7 @@ impl FromGlib for SerializeFlags { #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] impl StaticType for SerializeFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_serialize_flags_get_type()) } } } @@ -2337,7 +2361,7 @@ impl glib::value::ValueType for SerializeFlags { #[cfg(feature = "v1_20")] #[cfg_attr(docsrs, doc(cfg(feature = "v1_20")))] -unsafe impl<'a> FromValue<'a> for SerializeFlags { +unsafe impl<'a> glib::value::FromValue<'a> for SerializeFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -2376,6 +2400,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstStackTraceFlags")] pub struct StackTraceFlags: u32 { #[doc(alias = "GST_STACK_TRACE_SHOW_FULL")] @@ -2404,7 +2429,7 @@ impl FromGlib for StackTraceFlags { impl StaticType for StackTraceFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_stack_trace_flags_get_type()) } } } @@ -2423,7 +2448,7 @@ impl glib::value::ValueType for StackTraceFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for StackTraceFlags { +unsafe impl<'a> glib::value::FromValue<'a> for StackTraceFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -2458,6 +2483,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstStreamFlags")] pub struct StreamFlags: u32 { #[doc(alias = "GST_STREAM_FLAG_SPARSE")] @@ -2490,7 +2516,7 @@ impl FromGlib for StreamFlags { impl StaticType for StreamFlags { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_stream_flags_get_type()) } } } @@ -2509,7 +2535,7 @@ impl glib::value::ValueType for StreamFlags { type Type = Self; } -unsafe impl<'a> FromValue<'a> for StreamFlags { +unsafe impl<'a> glib::value::FromValue<'a> for StreamFlags { type Checker = glib::value::GenericValueTypeChecker; #[inline] @@ -2544,6 +2570,7 @@ impl From for glib::Value { } bitflags! { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[doc(alias = "GstStreamType")] pub struct StreamType: u32 { #[doc(alias = "GST_STREAM_TYPE_UNKNOWN")] @@ -2599,7 +2626,7 @@ impl FromGlib for StreamType { impl StaticType for StreamType { #[inline] - fn static_type() -> Type { + fn static_type() -> glib::Type { unsafe { from_glib(ffi::gst_stream_type_get_type()) } } } @@ -2618,7 +2645,7 @@ impl glib::value::ValueType for StreamType { type Type = Self; } -unsafe impl<'a> FromValue<'a> for StreamType { +unsafe impl<'a> glib::value::FromValue<'a> for StreamType { type Checker = glib::value::GenericValueTypeChecker; #[inline] diff --git a/gstreamer/src/auto/pad.rs b/gstreamer/src/auto/pad.rs index 70636217a..4daf86e54 100644 --- a/gstreamer/src/auto/pad.rs +++ b/gstreamer/src/auto/pad.rs @@ -496,7 +496,7 @@ pub trait PadExt: IsA + sealed::Sealed + 'static { } fn caps(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "caps") + ObjectExt::property(self.as_ref(), "caps") } #[doc(alias = "linked")] diff --git a/gstreamer/src/auto/system_clock.rs b/gstreamer/src/auto/system_clock.rs index aefa85f4a..a2b3944e4 100644 --- a/gstreamer/src/auto/system_clock.rs +++ b/gstreamer/src/auto/system_clock.rs @@ -49,12 +49,12 @@ mod sealed { pub trait SystemClockExt: IsA + sealed::Sealed + 'static { #[doc(alias = "clock-type")] fn clock_type(&self) -> ClockType { - glib::ObjectExt::property(self.as_ref(), "clock-type") + ObjectExt::property(self.as_ref(), "clock-type") } #[doc(alias = "clock-type")] fn set_clock_type(&self, clock_type: ClockType) { - glib::ObjectExt::set_property(self.as_ref(), "clock-type", clock_type) + ObjectExt::set_property(self.as_ref(), "clock-type", clock_type) } #[doc(alias = "clock-type")] diff --git a/gstreamer/src/auto/tracer.rs b/gstreamer/src/auto/tracer.rs index 299aabdf9..4a8b07772 100644 --- a/gstreamer/src/auto/tracer.rs +++ b/gstreamer/src/auto/tracer.rs @@ -34,11 +34,11 @@ mod sealed { pub trait TracerExt: IsA + sealed::Sealed + 'static { fn params(&self) -> Option { - glib::ObjectExt::property(self.as_ref(), "params") + ObjectExt::property(self.as_ref(), "params") } fn set_params(&self, params: Option<&str>) { - glib::ObjectExt::set_property(self.as_ref(), "params", params) + ObjectExt::set_property(self.as_ref(), "params", params) } #[doc(alias = "params")] diff --git a/gstreamer/src/auto/versions.txt b/gstreamer/src/auto/versions.txt index 6c0d75e68..7942439dc 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 @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979) diff --git a/gstreamer/sys/src/auto/versions.txt b/gstreamer/sys/src/auto/versions.txt index 6c0d75e68..7942439dc 100644 --- a/gstreamer/sys/src/auto/versions.txt +++ b/gstreamer/sys/src/auto/versions.txt @@ -1,3 +1,3 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 47312a7cf33a) +Generated by gir (https://github.com/gtk-rs/gir @ c659c2b21954) from gir-files (https://github.com/gtk-rs/gir-files @ 744be9fbbbed) from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git @ 438cdf944979)