From 8a2e78e5869f0281fd27dd1ece8bc9c436bbe0c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 27 Nov 2017 19:16:34 +0200 Subject: [PATCH] Regenerate with latest GIR to fix various issues with property getters Get rid of unneeded transmutes and actually initialize flags/enum GValues with the correct type instead of using integers. --- gstreamer-app/src/auto/app_sink.rs | 13 +++--- gstreamer-app/src/auto/app_src.rs | 44 +++++++++++-------- gstreamer-app/src/auto/enums.rs | 2 +- gstreamer-app/src/auto/flags.rs | 2 +- gstreamer-app/src/auto/mod.rs | 2 +- gstreamer-audio/src/auto/enums.rs | 2 +- gstreamer-audio/src/auto/flags.rs | 2 +- gstreamer-audio/src/auto/mod.rs | 2 +- gstreamer-audio/src/auto/stream_volume.rs | 2 +- gstreamer-base/src/auto/adapter.rs | 2 +- gstreamer-base/src/auto/base_sink.rs | 18 +++++--- gstreamer-base/src/auto/base_src.rs | 13 +++--- gstreamer-base/src/auto/base_transform.rs | 8 ++-- gstreamer-base/src/auto/enums.rs | 2 +- gstreamer-base/src/auto/flags.rs | 2 +- gstreamer-base/src/auto/mod.rs | 2 +- gstreamer-base/src/auto/push_src.rs | 2 +- gstreamer-player/src/auto/enums.rs | 2 +- gstreamer-player/src/auto/flags.rs | 2 +- gstreamer-player/src/auto/mod.rs | 2 +- gstreamer-player/src/auto/player.rs | 20 +++++---- .../src/auto/player_audio_info.rs | 2 +- ...player_g_main_context_signal_dispatcher.rs | 8 ++-- .../src/auto/player_media_info.rs | 2 +- .../src/auto/player_signal_dispatcher.rs | 2 +- .../src/auto/player_stream_info.rs | 2 +- .../src/auto/player_subtitle_info.rs | 2 +- .../src/auto/player_video_info.rs | 2 +- .../player_video_overlay_video_renderer.rs | 8 ++-- .../src/auto/player_video_renderer.rs | 2 +- .../src/auto/player_visualization.rs | 2 +- gstreamer-video/src/auto/enums.rs | 2 +- gstreamer-video/src/auto/flags.rs | 2 +- gstreamer-video/src/auto/mod.rs | 2 +- gstreamer-video/src/auto/video_overlay.rs | 2 +- gstreamer/src/auto/alias.rs | 2 +- gstreamer/src/auto/bin.rs | 13 +++--- gstreamer/src/auto/bus.rs | 2 +- gstreamer/src/auto/child_proxy.rs | 2 +- gstreamer/src/auto/clock.rs | 15 ++++--- gstreamer/src/auto/date_time.rs | 2 +- gstreamer/src/auto/device.rs | 23 ++++++---- gstreamer/src/auto/device_monitor.rs | 8 ++-- gstreamer/src/auto/device_provider.rs | 2 +- gstreamer/src/auto/device_provider_factory.rs | 2 +- gstreamer/src/auto/element.rs | 6 +-- gstreamer/src/auto/element_factory.rs | 2 +- gstreamer/src/auto/enums.rs | 2 +- gstreamer/src/auto/flags.rs | 2 +- gstreamer/src/auto/functions.rs | 2 +- gstreamer/src/auto/ghost_pad.rs | 2 +- gstreamer/src/auto/mod.rs | 2 +- gstreamer/src/auto/object.rs | 2 +- gstreamer/src/auto/pad.rs | 13 +++--- gstreamer/src/auto/pad_template.rs | 18 +++++--- gstreamer/src/auto/pipeline.rs | 2 +- gstreamer/src/auto/plugin.rs | 2 +- gstreamer/src/auto/preset.rs | 2 +- gstreamer/src/auto/proxy_pad.rs | 2 +- gstreamer/src/auto/stream.rs | 30 +++++++------ gstreamer/src/auto/stream_collection.rs | 8 ++-- gstreamer/src/auto/system_clock.rs | 9 ++-- gstreamer/src/auto/tag_setter.rs | 2 +- gstreamer/src/auto/toc_setter.rs | 2 +- gstreamer/src/auto/u_r_i_handler.rs | 2 +- 65 files changed, 211 insertions(+), 158 deletions(-) diff --git a/gstreamer-app/src/auto/app_sink.rs b/gstreamer-app/src/auto/app_sink.rs index 90b19024b..dd3346cab 100644 --- a/gstreamer-app/src/auto/app_sink.rs +++ b/gstreamer-app/src/auto/app_sink.rs @@ -1,7 +1,8 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; +use glib::StaticType; use glib::Value; use glib::signal::SignalHandlerId; use glib::signal::connect; @@ -144,11 +145,12 @@ impl AppSink { } pub fn get_property_buffer_list(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "buffer-list".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } pub fn set_property_buffer_list(&self, buffer_list: bool) { @@ -158,11 +160,12 @@ impl AppSink { } pub fn get_property_eos(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "eos".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } pub fn connect_eos(&self, f: F) -> SignalHandlerId { diff --git a/gstreamer-app/src/auto/app_src.rs b/gstreamer-app/src/auto/app_src.rs index c41e3e248..0f8a84683 100644 --- a/gstreamer-app/src/auto/app_src.rs +++ b/gstreamer-app/src/auto/app_src.rs @@ -1,8 +1,9 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use AppStreamType; use ffi; +use glib::StaticType; use glib::Value; use glib::signal::SignalHandlerId; use glib::signal::connect; @@ -147,11 +148,12 @@ impl AppSrc { } pub fn get_property_block(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "block".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } pub fn set_property_block(&self, block: bool) { @@ -161,19 +163,21 @@ impl AppSrc { } pub fn get_property_current_level_bytes(&self) -> u64 { - let mut value = Value::from(&0u64); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "current-level-bytes".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } pub fn get_property_duration(&self) -> u64 { - let mut value = Value::from(&0u64); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "duration".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } pub fn set_property_duration(&self, duration: u64) { @@ -183,26 +187,27 @@ impl AppSrc { } pub fn get_property_format(&self) -> gst::Format { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "format".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } pub fn set_property_format(&self, format: gst::Format) { - let format = format.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "format".to_glib_none().0, Value::from(&format).to_glib_none().0); } } pub fn get_property_is_live(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "is-live".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } pub fn set_property_is_live(&self, is_live: bool) { @@ -212,11 +217,12 @@ impl AppSrc { } pub fn get_property_max_latency(&self) -> i64 { - let mut value = Value::from(&0i64); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "max-latency".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } pub fn set_property_max_latency(&self, max_latency: i64) { @@ -226,11 +232,12 @@ impl AppSrc { } pub fn get_property_min_latency(&self) -> i64 { - let mut value = Value::from(&0i64); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "min-latency".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } pub fn set_property_min_latency(&self, min_latency: i64) { @@ -240,11 +247,12 @@ impl AppSrc { } pub fn get_property_min_percent(&self) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "min-percent".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } pub fn set_property_min_percent(&self, min_percent: u32) { diff --git a/gstreamer-app/src/auto/enums.rs b/gstreamer-app/src/auto/enums.rs index bdc4b99cd..2bed954ba 100644 --- a/gstreamer-app/src/auto/enums.rs +++ b/gstreamer-app/src/auto/enums.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-app/src/auto/flags.rs b/gstreamer-app/src/auto/flags.rs index a000ae933..956a81a14 100644 --- a/gstreamer-app/src/auto/flags.rs +++ b/gstreamer-app/src/auto/flags.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-app/src/auto/mod.rs b/gstreamer-app/src/auto/mod.rs index 9c21e6690..bf339384a 100644 --- a/gstreamer-app/src/auto/mod.rs +++ b/gstreamer-app/src/auto/mod.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT mod app_sink; diff --git a/gstreamer-audio/src/auto/enums.rs b/gstreamer-audio/src/auto/enums.rs index 66172bdcf..e0579c7a2 100644 --- a/gstreamer-audio/src/auto/enums.rs +++ b/gstreamer-audio/src/auto/enums.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-audio/src/auto/flags.rs b/gstreamer-audio/src/auto/flags.rs index 35a21f4e3..3f65d097a 100644 --- a/gstreamer-audio/src/auto/flags.rs +++ b/gstreamer-audio/src/auto/flags.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-audio/src/auto/mod.rs b/gstreamer-audio/src/auto/mod.rs index 6b9dd3680..6340458ed 100644 --- a/gstreamer-audio/src/auto/mod.rs +++ b/gstreamer-audio/src/auto/mod.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT mod stream_volume; diff --git a/gstreamer-audio/src/auto/stream_volume.rs b/gstreamer-audio/src/auto/stream_volume.rs index ae766070e..a5261f036 100644 --- a/gstreamer-audio/src/auto/stream_volume.rs +++ b/gstreamer-audio/src/auto/stream_volume.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use StreamVolumeFormat; diff --git a/gstreamer-base/src/auto/adapter.rs b/gstreamer-base/src/auto/adapter.rs index 5f796e6b3..599194dcf 100644 --- a/gstreamer-base/src/auto/adapter.rs +++ b/gstreamer-base/src/auto/adapter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-base/src/auto/base_sink.rs b/gstreamer-base/src/auto/base_sink.rs index 63319d3e4..718b934b4 100644 --- a/gstreamer-base/src/auto/base_sink.rs +++ b/gstreamer-base/src/auto/base_sink.rs @@ -1,8 +1,9 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -313,11 +314,12 @@ impl + IsA> BaseSinkExt for O { } fn get_property_async(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "async".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_async(&self, async: bool) { @@ -327,11 +329,12 @@ impl + IsA> BaseSinkExt for O { } fn get_property_enable_last_sample(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "enable-last-sample".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_enable_last_sample(&self, enable_last_sample: bool) { @@ -341,11 +344,12 @@ impl + IsA> BaseSinkExt for O { } fn get_property_qos(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "qos".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_qos(&self, qos: bool) { diff --git a/gstreamer-base/src/auto/base_src.rs b/gstreamer-base/src/auto/base_src.rs index 2bab85ea8..50aba06a6 100644 --- a/gstreamer-base/src/auto/base_src.rs +++ b/gstreamer-base/src/auto/base_src.rs @@ -1,8 +1,9 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -204,11 +205,12 @@ impl + IsA> BaseSrcExt for O { } fn get_property_num_buffers(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "num-buffers".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_num_buffers(&self, num_buffers: i32) { @@ -218,11 +220,12 @@ impl + IsA> BaseSrcExt for O { } fn get_property_typefind(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "typefind".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_typefind(&self, typefind: bool) { diff --git a/gstreamer-base/src/auto/base_transform.rs b/gstreamer-base/src/auto/base_transform.rs index 0cbf16eb9..e18575429 100644 --- a/gstreamer-base/src/auto/base_transform.rs +++ b/gstreamer-base/src/auto/base_transform.rs @@ -1,8 +1,9 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -150,11 +151,12 @@ impl + IsA> BaseTransformExt for O { } fn get_property_qos(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "qos".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_qos(&self, qos: bool) { diff --git a/gstreamer-base/src/auto/enums.rs b/gstreamer-base/src/auto/enums.rs index a000ae933..956a81a14 100644 --- a/gstreamer-base/src/auto/enums.rs +++ b/gstreamer-base/src/auto/enums.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-base/src/auto/flags.rs b/gstreamer-base/src/auto/flags.rs index a000ae933..956a81a14 100644 --- a/gstreamer-base/src/auto/flags.rs +++ b/gstreamer-base/src/auto/flags.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-base/src/auto/mod.rs b/gstreamer-base/src/auto/mod.rs index 079a35f9a..d1e4058a1 100644 --- a/gstreamer-base/src/auto/mod.rs +++ b/gstreamer-base/src/auto/mod.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT mod adapter; diff --git a/gstreamer-base/src/auto/push_src.rs b/gstreamer-base/src/auto/push_src.rs index 592ad8a27..7d09a5c3d 100644 --- a/gstreamer-base/src/auto/push_src.rs +++ b/gstreamer-base/src/auto/push_src.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use BaseSrc; diff --git a/gstreamer-player/src/auto/enums.rs b/gstreamer-player/src/auto/enums.rs index 9f7dd7d81..5250321fe 100644 --- a/gstreamer-player/src/auto/enums.rs +++ b/gstreamer-player/src/auto/enums.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-player/src/auto/flags.rs b/gstreamer-player/src/auto/flags.rs index a000ae933..956a81a14 100644 --- a/gstreamer-player/src/auto/flags.rs +++ b/gstreamer-player/src/auto/flags.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-player/src/auto/mod.rs b/gstreamer-player/src/auto/mod.rs index 5d9d50c28..a24f134c6 100644 --- a/gstreamer-player/src/auto/mod.rs +++ b/gstreamer-player/src/auto/mod.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT mod player; diff --git a/gstreamer-player/src/auto/player.rs b/gstreamer-player/src/auto/player.rs index d056b9a96..052133c7d 100644 --- a/gstreamer-player/src/auto/player.rs +++ b/gstreamer-player/src/auto/player.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use Error; @@ -11,6 +11,7 @@ use PlayerSubtitleInfo; use PlayerVideoInfo; use PlayerVisualization; use ffi; +use glib::StaticType; use glib::Value; use glib::signal::SignalHandlerId; use glib::signal::connect; @@ -280,11 +281,12 @@ impl Player { } pub fn get_property_suburi(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "suburi".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } pub fn set_property_suburi(&self, suburi: Option<&str>) { @@ -294,30 +296,30 @@ impl Player { } //pub fn get_property_video_multiview_flags(&self) -> /*Ignored*/gst_video::VideoMultiviewFlags { - // let mut value = Value::from(&0u32); // unsafe { + // let mut value = Value::uninitialized(); + // gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); // gobject_ffi::g_object_get_property(self.to_glib_none().0, "video-multiview-flags".to_glib_none().0, value.to_glib_none_mut().0); - // from_glib(transmute(value.get::().unwrap())) + // value.get().unwrap() // } //} //pub fn set_property_video_multiview_flags(&self, video_multiview_flags: /*Ignored*/gst_video::VideoMultiviewFlags) { - // let video_multiview_flags = video_multiview_flags.to_glib().bits() as u32; // unsafe { // gobject_ffi::g_object_set_property(self.to_glib_none().0, "video-multiview-flags".to_glib_none().0, Value::from(&video_multiview_flags).to_glib_none().0); // } //} //pub fn get_property_video_multiview_mode(&self) -> /*Ignored*/gst_video::VideoMultiviewFramePacking { - // let mut value = Value::from(&0); // unsafe { + // let mut value = Value::uninitialized(); + // gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); // gobject_ffi::g_object_get_property(self.to_glib_none().0, "video-multiview-mode".to_glib_none().0, value.to_glib_none_mut().0); - // from_glib(transmute(value.get::().unwrap())) + // value.get().unwrap() // } //} //pub fn set_property_video_multiview_mode(&self, video_multiview_mode: /*Ignored*/gst_video::VideoMultiviewFramePacking) { - // let video_multiview_mode = video_multiview_mode.to_glib() as i32; // unsafe { // gobject_ffi::g_object_set_property(self.to_glib_none().0, "video-multiview-mode".to_glib_none().0, Value::from(&video_multiview_mode).to_glib_none().0); // } diff --git a/gstreamer-player/src/auto/player_audio_info.rs b/gstreamer-player/src/auto/player_audio_info.rs index d1e6c5300..ed4af38f2 100644 --- a/gstreamer-player/src/auto/player_audio_info.rs +++ b/gstreamer-player/src/auto/player_audio_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use PlayerStreamInfo; diff --git a/gstreamer-player/src/auto/player_g_main_context_signal_dispatcher.rs b/gstreamer-player/src/auto/player_g_main_context_signal_dispatcher.rs index 80f98727f..71ff6f70b 100644 --- a/gstreamer-player/src/auto/player_g_main_context_signal_dispatcher.rs +++ b/gstreamer-player/src/auto/player_g_main_context_signal_dispatcher.rs @@ -1,9 +1,10 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use PlayerSignalDispatcher; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::signal::SignalHandlerId; use glib::signal::connect; @@ -25,11 +26,12 @@ glib_wrapper! { impl PlayerGMainContextSignalDispatcher { pub fn get_property_application_context(&self) -> Option { - let mut value = Value::from(None::<&glib::MainContext>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "application-context".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } pub fn connect_property_application_context_notify(&self, f: F) -> SignalHandlerId { diff --git a/gstreamer-player/src/auto/player_media_info.rs b/gstreamer-player/src/auto/player_media_info.rs index cb8bca13e..7c3e88464 100644 --- a/gstreamer-player/src/auto/player_media_info.rs +++ b/gstreamer-player/src/auto/player_media_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use PlayerAudioInfo; diff --git a/gstreamer-player/src/auto/player_signal_dispatcher.rs b/gstreamer-player/src/auto/player_signal_dispatcher.rs index 1e193b212..70d041488 100644 --- a/gstreamer-player/src/auto/player_signal_dispatcher.rs +++ b/gstreamer-player/src/auto/player_signal_dispatcher.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-player/src/auto/player_stream_info.rs b/gstreamer-player/src/auto/player_stream_info.rs index bb7854908..a1a8e2ada 100644 --- a/gstreamer-player/src/auto/player_stream_info.rs +++ b/gstreamer-player/src/auto/player_stream_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-player/src/auto/player_subtitle_info.rs b/gstreamer-player/src/auto/player_subtitle_info.rs index cbe4f9bf3..66d3e1fa1 100644 --- a/gstreamer-player/src/auto/player_subtitle_info.rs +++ b/gstreamer-player/src/auto/player_subtitle_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use PlayerStreamInfo; diff --git a/gstreamer-player/src/auto/player_video_info.rs b/gstreamer-player/src/auto/player_video_info.rs index be5f0f4cb..a69fe36a7 100644 --- a/gstreamer-player/src/auto/player_video_info.rs +++ b/gstreamer-player/src/auto/player_video_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use PlayerStreamInfo; 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 57eaa3fac..4e6433d84 100644 --- a/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs +++ b/gstreamer-player/src/auto/player_video_overlay_video_renderer.rs @@ -1,9 +1,10 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use PlayerVideoRenderer; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::IsA; use glib::signal::SignalHandlerId; @@ -58,11 +59,12 @@ impl PlayerVideoOverlayVideoRenderer { //} pub fn get_property_video_sink(&self) -> Option { - let mut value = Value::from(None::<&gst::Element>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "video-sink".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } pub fn set_property_video_sink + IsA + glib::value::SetValueOptional>(&self, video_sink: Option<&P>) { diff --git a/gstreamer-player/src/auto/player_video_renderer.rs b/gstreamer-player/src/auto/player_video_renderer.rs index 8d3137f23..145009cf9 100644 --- a/gstreamer-player/src/auto/player_video_renderer.rs +++ b/gstreamer-player/src/auto/player_video_renderer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-player/src/auto/player_visualization.rs b/gstreamer-player/src/auto/player_visualization.rs index 7a9453fcd..b009e0788 100644 --- a/gstreamer-player/src/auto/player_visualization.rs +++ b/gstreamer-player/src/auto/player_visualization.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-video/src/auto/enums.rs b/gstreamer-video/src/auto/enums.rs index 32d8d222f..9dacdc535 100644 --- a/gstreamer-video/src/auto/enums.rs +++ b/gstreamer-video/src/auto/enums.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-video/src/auto/flags.rs b/gstreamer-video/src/auto/flags.rs index 181302853..86ca3dd14 100644 --- a/gstreamer-video/src/auto/flags.rs +++ b/gstreamer-video/src/auto/flags.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer-video/src/auto/mod.rs b/gstreamer-video/src/auto/mod.rs index 3b253b512..dd93d1ae7 100644 --- a/gstreamer-video/src/auto/mod.rs +++ b/gstreamer-video/src/auto/mod.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT mod video_overlay; diff --git a/gstreamer-video/src/auto/video_overlay.rs b/gstreamer-video/src/auto/video_overlay.rs index 8b5e3fb0f..0a6bd775e 100644 --- a/gstreamer-video/src/auto/video_overlay.rs +++ b/gstreamer-video/src/auto/video_overlay.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer/src/auto/alias.rs b/gstreamer/src/auto/alias.rs index f00994038..864ea408d 100644 --- a/gstreamer/src/auto/alias.rs +++ b/gstreamer/src/auto/alias.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT #[allow(unused_imports)] diff --git a/gstreamer/src/auto/bin.rs b/gstreamer/src/auto/bin.rs index d9a425d8f..f09aa27e7 100644 --- a/gstreamer/src/auto/bin.rs +++ b/gstreamer/src/auto/bin.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ChildProxy; @@ -10,6 +10,7 @@ use Pad; use PadDirection; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -205,11 +206,12 @@ impl + IsA> BinExt for O { } fn get_property_async_handling(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "async-handling".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_async_handling(&self, async_handling: bool) { @@ -219,11 +221,12 @@ impl + IsA> BinExt for O { } fn get_property_message_forward(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "message-forward".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_message_forward(&self, message_forward: bool) { diff --git a/gstreamer/src/auto/bus.rs b/gstreamer/src/auto/bus.rs index 712b0164d..e7d6d5d10 100644 --- a/gstreamer/src/auto/bus.rs +++ b/gstreamer/src/auto/bus.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ClockTime; diff --git a/gstreamer/src/auto/child_proxy.rs b/gstreamer/src/auto/child_proxy.rs index 262208701..1b059be7f 100644 --- a/gstreamer/src/auto/child_proxy.rs +++ b/gstreamer/src/auto/child_proxy.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer/src/auto/clock.rs b/gstreamer/src/auto/clock.rs index 4c7d724c8..957f27755 100644 --- a/gstreamer/src/auto/clock.rs +++ b/gstreamer/src/auto/clock.rs @@ -1,10 +1,11 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ClockTime; use Object; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -51,7 +52,7 @@ impl Clock { // unsafe { TODO: call ffi::gst_clock_id_wait() } //} - //pub fn id_wait_async>>(id: /*Unimplemented*/ClockID, func: /*Unknown conversion*//*Unimplemented*/ClockCallback, user_data: P, destroy_data: /*Unknown conversion*//*Unimplemented*/DestroyNotify) -> ClockReturn { + //pub fn id_wait_async(id: /*Unimplemented*/ClockID, func: /*Unknown conversion*//*Unimplemented*/ClockCallback, destroy_data: /*Unknown conversion*//*Unimplemented*/DestroyNotify) -> ClockReturn { // unsafe { TODO: call ffi::gst_clock_id_wait_async() } //} } @@ -270,11 +271,12 @@ impl + IsA> ClockExt for O { } fn get_property_window_size(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "window-size".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_window_size(&self, window_size: i32) { @@ -284,11 +286,12 @@ impl + IsA> ClockExt for O { } fn get_property_window_threshold(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "window-threshold".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_window_threshold(&self, window_threshold: i32) { diff --git a/gstreamer/src/auto/date_time.rs b/gstreamer/src/auto/date_time.rs index 34508bf74..0012e8fa6 100644 --- a/gstreamer/src/auto/date_time.rs +++ b/gstreamer/src/auto/date_time.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer/src/auto/device.rs b/gstreamer/src/auto/device.rs index 2a974ff4f..0ccd44678 100644 --- a/gstreamer/src/auto/device.rs +++ b/gstreamer/src/auto/device.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use Caps; @@ -7,6 +7,7 @@ use Object; use Structure; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -119,35 +120,39 @@ impl + IsA> DeviceExt for O { } fn get_property_caps(&self) -> Option { - let mut value = Value::from(None::<&Caps>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "caps".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn get_property_device_class(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "device-class".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn get_property_display_name(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "display-name".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn get_property_properties(&self) -> Option { - let mut value = Value::from(None::<&Structure>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "properties".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn connect_removed(&self, f: F) -> SignalHandlerId { diff --git a/gstreamer/src/auto/device_monitor.rs b/gstreamer/src/auto/device_monitor.rs index c6f37d1bc..64ac6caa3 100644 --- a/gstreamer/src/auto/device_monitor.rs +++ b/gstreamer/src/auto/device_monitor.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use Bus; @@ -7,6 +7,7 @@ use Device; use Object; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -132,11 +133,12 @@ impl + IsA> DeviceMonitorExt for O { } fn get_property_show_all(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-all".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_show_all(&self, show_all: bool) { diff --git a/gstreamer/src/auto/device_provider.rs b/gstreamer/src/auto/device_provider.rs index 313688fa1..ba88fcadc 100644 --- a/gstreamer/src/auto/device_provider.rs +++ b/gstreamer/src/auto/device_provider.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use Bus; diff --git a/gstreamer/src/auto/device_provider_factory.rs b/gstreamer/src/auto/device_provider_factory.rs index bf668d9f7..9f4020f91 100644 --- a/gstreamer/src/auto/device_provider_factory.rs +++ b/gstreamer/src/auto/device_provider_factory.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use DeviceProvider; diff --git a/gstreamer/src/auto/element.rs b/gstreamer/src/auto/element.rs index e0fc580f4..60effd923 100644 --- a/gstreamer/src/auto/element.rs +++ b/gstreamer/src/auto/element.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use Bus; @@ -85,7 +85,7 @@ pub trait ElementExt { fn add_pad>(&self, pad: &P) -> Result<(), glib::error::BoolError>; //#[cfg(any(feature = "v1_10", feature = "dox"))] - //fn call_async>>(&self, func: /*Unknown conversion*//*Unimplemented*/ElementCallAsyncFunc, user_data: P, destroy_notify: /*Unknown conversion*//*Unimplemented*/DestroyNotify); + //fn call_async(&self, func: /*Unknown conversion*//*Unimplemented*/ElementCallAsyncFunc, destroy_notify: /*Unknown conversion*//*Unimplemented*/DestroyNotify); fn change_state(&self, transition: StateChange) -> StateChangeReturn; @@ -199,7 +199,7 @@ impl + IsA> ElementExt for O { } //#[cfg(any(feature = "v1_10", feature = "dox"))] - //fn call_async>>(&self, func: /*Unknown conversion*//*Unimplemented*/ElementCallAsyncFunc, user_data: P, destroy_notify: /*Unknown conversion*//*Unimplemented*/DestroyNotify) { + //fn call_async(&self, func: /*Unknown conversion*//*Unimplemented*/ElementCallAsyncFunc, destroy_notify: /*Unknown conversion*//*Unimplemented*/DestroyNotify) { // unsafe { TODO: call ffi::gst_element_call_async() } //} diff --git a/gstreamer/src/auto/element_factory.rs b/gstreamer/src/auto/element_factory.rs index cc0178a3d..0b43ca1b2 100644 --- a/gstreamer/src/auto/element_factory.rs +++ b/gstreamer/src/auto/element_factory.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use Caps; diff --git a/gstreamer/src/auto/enums.rs b/gstreamer/src/auto/enums.rs index 2eacc8cf2..e1413857f 100644 --- a/gstreamer/src/auto/enums.rs +++ b/gstreamer/src/auto/enums.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer/src/auto/flags.rs b/gstreamer/src/auto/flags.rs index df188ae74..0fbd9ccb8 100644 --- a/gstreamer/src/auto/flags.rs +++ b/gstreamer/src/auto/flags.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer/src/auto/functions.rs b/gstreamer/src/auto/functions.rs index eaa3fd113..e577ca6f9 100644 --- a/gstreamer/src/auto/functions.rs +++ b/gstreamer/src/auto/functions.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use Bin; diff --git a/gstreamer/src/auto/ghost_pad.rs b/gstreamer/src/auto/ghost_pad.rs index 6fe317ded..470d3efeb 100644 --- a/gstreamer/src/auto/ghost_pad.rs +++ b/gstreamer/src/auto/ghost_pad.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use Object; diff --git a/gstreamer/src/auto/mod.rs b/gstreamer/src/auto/mod.rs index d8b6f6117..fed3339ed 100644 --- a/gstreamer/src/auto/mod.rs +++ b/gstreamer/src/auto/mod.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT mod bin; diff --git a/gstreamer/src/auto/object.rs b/gstreamer/src/auto/object.rs index 5fcd91392..bf21cf7e8 100644 --- a/gstreamer/src/auto/object.rs +++ b/gstreamer/src/auto/object.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ClockTime; diff --git a/gstreamer/src/auto/pad.rs b/gstreamer/src/auto/pad.rs index e80472b19..f025f22e3 100644 --- a/gstreamer/src/auto/pad.rs +++ b/gstreamer/src/auto/pad.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use Caps; @@ -18,6 +18,7 @@ use Stream; use TaskState; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -543,19 +544,21 @@ impl + IsA> PadExt for O { } fn get_property_caps(&self) -> Option { - let mut value = Value::from(None::<&Caps>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "caps".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn get_property_template(&self) -> Option { - let mut value = Value::from(None::<&PadTemplate>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "template".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_template(&self, template: Option<&PadTemplate>) { diff --git a/gstreamer/src/auto/pad_template.rs b/gstreamer/src/auto/pad_template.rs index 94c8d39fa..78152af19 100644 --- a/gstreamer/src/auto/pad_template.rs +++ b/gstreamer/src/auto/pad_template.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use Caps; @@ -7,6 +7,7 @@ use Pad; use PadDirection; use PadPresence; use ffi; +use glib::StaticType; use glib::Value; use glib::object::IsA; use glib::signal::SignalHandlerId; @@ -48,26 +49,29 @@ impl PadTemplate { } pub fn get_property_direction(&self) -> PadDirection { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "direction".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } pub fn get_property_name_template(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "name-template".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } pub fn get_property_presence(&self) -> PadPresence { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "presence".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } diff --git a/gstreamer/src/auto/pipeline.rs b/gstreamer/src/auto/pipeline.rs index fcbc35b80..4f39acb9a 100644 --- a/gstreamer/src/auto/pipeline.rs +++ b/gstreamer/src/auto/pipeline.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use Bin; diff --git a/gstreamer/src/auto/plugin.rs b/gstreamer/src/auto/plugin.rs index cc70a0aff..8afec43b7 100644 --- a/gstreamer/src/auto/plugin.rs +++ b/gstreamer/src/auto/plugin.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use Error; diff --git a/gstreamer/src/auto/preset.rs b/gstreamer/src/auto/preset.rs index 753045cca..55cbc45f2 100644 --- a/gstreamer/src/auto/preset.rs +++ b/gstreamer/src/auto/preset.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; diff --git a/gstreamer/src/auto/proxy_pad.rs b/gstreamer/src/auto/proxy_pad.rs index c82525517..306593c65 100644 --- a/gstreamer/src/auto/proxy_pad.rs +++ b/gstreamer/src/auto/proxy_pad.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use Object; diff --git a/gstreamer/src/auto/stream.rs b/gstreamer/src/auto/stream.rs index bfb1fe1e3..d303a4faf 100644 --- a/gstreamer/src/auto/stream.rs +++ b/gstreamer/src/auto/stream.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use Caps; @@ -7,6 +7,7 @@ use StreamFlags; use StreamType; use TagList; use ffi; +use glib::StaticType; use glib::Value; use glib::signal::SignalHandlerId; use glib::signal::connect; @@ -107,11 +108,12 @@ impl Stream { } pub fn get_property_caps(&self) -> Option { - let mut value = Value::from(None::<&Caps>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "caps".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } pub fn set_property_caps(&self, caps: Option<&Caps>) { @@ -121,49 +123,51 @@ impl Stream { } pub fn get_property_stream_flags(&self) -> StreamFlags { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "stream-flags".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } pub fn set_property_stream_flags(&self, stream_flags: StreamFlags) { - let stream_flags = stream_flags.to_glib().bits() as u32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "stream-flags".to_glib_none().0, Value::from(&stream_flags).to_glib_none().0); } } pub fn get_property_stream_id(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "stream-id".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } pub fn get_property_stream_type(&self) -> StreamType { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "stream-type".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } pub fn set_property_stream_type(&self, stream_type: StreamType) { - let stream_type = stream_type.to_glib().bits() as u32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "stream-type".to_glib_none().0, Value::from(&stream_type).to_glib_none().0); } } pub fn get_property_tags(&self) -> Option { - let mut value = Value::from(None::<&TagList>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "tags".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } pub fn set_property_tags(&self, tags: Option<&TagList>) { diff --git a/gstreamer/src/auto/stream_collection.rs b/gstreamer/src/auto/stream_collection.rs index bede9e36b..7f8ad1b23 100644 --- a/gstreamer/src/auto/stream_collection.rs +++ b/gstreamer/src/auto/stream_collection.rs @@ -1,10 +1,11 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use Object; #[cfg(any(feature = "v1_10", feature = "dox"))] use Stream; use ffi; +use glib::StaticType; use glib::Value; use glib::signal::SignalHandlerId; use glib::signal::connect; @@ -64,11 +65,12 @@ impl StreamCollection { } pub fn get_property_upstream_id(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "upstream-id".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } pub fn set_property_upstream_id(&self, upstream_id: Option<&str>) { diff --git a/gstreamer/src/auto/system_clock.rs b/gstreamer/src/auto/system_clock.rs index 86b064f61..da45d21b1 100644 --- a/gstreamer/src/auto/system_clock.rs +++ b/gstreamer/src/auto/system_clock.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use Clock; @@ -6,6 +6,7 @@ use ClockType; use Object; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -56,15 +57,15 @@ pub trait SystemClockExt { impl + IsA> SystemClockExt for O { fn get_property_clock_type(&self) -> ClockType { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "clock-type".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_clock_type(&self, clock_type: ClockType) { - let clock_type = clock_type.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "clock-type".to_glib_none().0, Value::from(&clock_type).to_glib_none().0); } diff --git a/gstreamer/src/auto/tag_setter.rs b/gstreamer/src/auto/tag_setter.rs index 34bb69e04..fa7a1f1de 100644 --- a/gstreamer/src/auto/tag_setter.rs +++ b/gstreamer/src/auto/tag_setter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use Element; diff --git a/gstreamer/src/auto/toc_setter.rs b/gstreamer/src/auto/toc_setter.rs index 1ba611402..bcf4d08e1 100644 --- a/gstreamer/src/auto/toc_setter.rs +++ b/gstreamer/src/auto/toc_setter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use Element; diff --git a/gstreamer/src/auto/u_r_i_handler.rs b/gstreamer/src/auto/u_r_i_handler.rs index d260e6594..b5239c79e 100644 --- a/gstreamer/src/auto/u_r_i_handler.rs +++ b/gstreamer/src/auto/u_r_i_handler.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (0409d73) from gir-files (???) +// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use Error;