diff --git a/gstreamer-app/src/auto/versions.txt b/gstreamer-app/src/auto/versions.txt index f37f40598..c6de1a3f8 100644 --- a/gstreamer-app/src/auto/versions.txt +++ b/gstreamer-app/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 811e711) +Generated by gir (https://github.com/gtk-rs/gir @ c5498ac) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-audio/src/auto/versions.txt b/gstreamer-audio/src/auto/versions.txt index f37f40598..c6de1a3f8 100644 --- a/gstreamer-audio/src/auto/versions.txt +++ b/gstreamer-audio/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 811e711) +Generated by gir (https://github.com/gtk-rs/gir @ c5498ac) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-base/src/auto/versions.txt b/gstreamer-base/src/auto/versions.txt index f37f40598..c6de1a3f8 100644 --- a/gstreamer-base/src/auto/versions.txt +++ b/gstreamer-base/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 811e711) +Generated by gir (https://github.com/gtk-rs/gir @ c5498ac) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-check/src/auto/versions.txt b/gstreamer-check/src/auto/versions.txt index f37f40598..c6de1a3f8 100644 --- a/gstreamer-check/src/auto/versions.txt +++ b/gstreamer-check/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 811e711) +Generated by gir (https://github.com/gtk-rs/gir @ c5498ac) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-editing-services/src/auto/asset.rs b/gstreamer-editing-services/src/auto/asset.rs index 30d2f9678..311c2383d 100644 --- a/gstreamer-editing-services/src/auto/asset.rs +++ b/gstreamer-editing-services/src/auto/asset.rs @@ -10,6 +10,7 @@ use futures_core; use gio; use gio_ffi; use glib; +use glib::GString; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -98,7 +99,7 @@ pub trait AssetExt: 'static { fn get_extractable_type(&self) -> glib::types::Type; - fn get_id(&self) -> Option; + fn get_id(&self) -> Option; fn get_proxy(&self) -> Option; @@ -138,7 +139,7 @@ impl> AssetExt for O { } } - fn get_id(&self) -> Option { + fn get_id(&self) -> Option { unsafe { from_glib_none(ffi::ges_asset_get_id(self.to_glib_none().0)) } diff --git a/gstreamer-editing-services/src/auto/effect.rs b/gstreamer-editing-services/src/auto/effect.rs index 8e7daaf81..d98531bf8 100644 --- a/gstreamer-editing-services/src/auto/effect.rs +++ b/gstreamer-editing-services/src/auto/effect.rs @@ -7,6 +7,7 @@ use Extractable; use TimelineElement; use TrackElement; use ffi; +use glib::GString; use glib::StaticType; use glib::Value; use glib::object::IsA; @@ -31,13 +32,13 @@ impl Effect { } pub trait EffectExt: 'static { - fn get_property_bin_description(&self) -> Option; + fn get_property_bin_description(&self) -> Option; } impl> EffectExt for O { - fn get_property_bin_description(&self) -> Option { + fn get_property_bin_description(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"bin-description\0".as_ptr() as *const _, value.to_glib_none_mut().0); value.get() } diff --git a/gstreamer-editing-services/src/auto/extractable.rs b/gstreamer-editing-services/src/auto/extractable.rs index c505e361c..73e77de79 100644 --- a/gstreamer-editing-services/src/auto/extractable.rs +++ b/gstreamer-editing-services/src/auto/extractable.rs @@ -4,6 +4,7 @@ use Asset; use ffi; +use glib::GString; use glib::object::IsA; use glib::translate::*; @@ -18,7 +19,7 @@ glib_wrapper! { pub trait ExtractableExt: 'static { fn get_asset(&self) -> Option; - fn get_id(&self) -> Option; + fn get_id(&self) -> Option; fn set_asset>(&self, asset: &P) -> bool; } @@ -30,7 +31,7 @@ impl> ExtractableExt for O { } } - fn get_id(&self) -> Option { + fn get_id(&self) -> Option { unsafe { from_glib_full(ffi::ges_extractable_get_id(self.to_glib_none().0)) } diff --git a/gstreamer-editing-services/src/auto/project.rs b/gstreamer-editing-services/src/auto/project.rs index 2fa6f58af..be69394c6 100644 --- a/gstreamer-editing-services/src/auto/project.rs +++ b/gstreamer-editing-services/src/auto/project.rs @@ -7,6 +7,7 @@ use Error; use Timeline; use ffi; use glib; +use glib::GString; use glib::object::Downcast; use glib::object::IsA; use glib::signal::SignalHandlerId; @@ -51,7 +52,7 @@ pub trait ProjectExt: 'static { fn get_loading_assets(&self) -> Vec; - fn get_uri(&self) -> Option; + fn get_uri(&self) -> Option; fn list_assets(&self, filter: glib::types::Type) -> Vec; @@ -73,7 +74,7 @@ pub trait ProjectExt: 'static { fn connect_loaded(&self, f: F) -> SignalHandlerId; - fn connect_missing_uri Option + 'static>(&self, f: F) -> SignalHandlerId; + fn connect_missing_uri Option + 'static>(&self, f: F) -> SignalHandlerId; } impl> ProjectExt for O { @@ -119,7 +120,7 @@ impl> ProjectExt for O { } } - fn get_uri(&self) -> Option { + fn get_uri(&self) -> Option { unsafe { from_glib_full(ffi::ges_project_get_uri(self.to_glib_none().0)) } @@ -201,9 +202,9 @@ impl> ProjectExt for O { } } - fn connect_missing_uri Option + 'static>(&self, f: F) -> SignalHandlerId { + fn connect_missing_uri Option + 'static>(&self, f: F) -> SignalHandlerId { unsafe { - let f: Box_ Option + 'static>> = Box_::new(Box_::new(f)); + let f: Box_ Option + 'static>> = Box_::new(Box_::new(f)); connect_raw(self.to_glib_none().0 as *mut _, b"missing-uri\0".as_ptr() as *const _, transmute(missing_uri_trampoline:: as usize), Box_::into_raw(f) as *mut _) } @@ -231,7 +232,7 @@ where P: IsA { unsafe extern "C" fn error_loading_asset_trampoline

(this: *mut ffi::GESProject, error: *mut glib_ffi::GError, id: *mut libc::c_char, extractable_type: glib_ffi::GType, f: glib_ffi::gpointer) where P: IsA { let f: &&(Fn(&P, &Error, &str, glib::types::Type) + 'static) = transmute(f); - f(&Project::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(error), &String::from_glib_none(id), from_glib(extractable_type)) + f(&Project::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(error), &GString::from_glib_borrow(id), from_glib(extractable_type)) } unsafe extern "C" fn loaded_trampoline

(this: *mut ffi::GESProject, timeline: *mut ffi::GESTimeline, f: glib_ffi::gpointer) @@ -242,6 +243,6 @@ where P: IsA { unsafe extern "C" fn missing_uri_trampoline

(this: *mut ffi::GESProject, error: *mut glib_ffi::GError, wrong_asset: *mut ffi::GESAsset, f: glib_ffi::gpointer) -> *mut libc::c_char where P: IsA { - let f: &&(Fn(&P, &Error, &Asset) -> Option + 'static) = transmute(f); + let f: &&(Fn(&P, &Error, &Asset) -> Option + 'static) = transmute(f); f(&Project::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(error), &from_glib_borrow(wrong_asset)).to_glib_full() } diff --git a/gstreamer-editing-services/src/auto/timeline_element.rs b/gstreamer-editing-services/src/auto/timeline_element.rs index 7905a9678..7adff1526 100644 --- a/gstreamer-editing-services/src/auto/timeline_element.rs +++ b/gstreamer-editing-services/src/auto/timeline_element.rs @@ -6,6 +6,7 @@ use Extractable; use Timeline; use TrackType; use ffi; +use glib::GString; use glib::StaticType; use glib::Value; use glib::object::Downcast; @@ -46,7 +47,7 @@ pub trait TimelineElementExt: 'static { fn get_max_duration(&self) -> gst::ClockTime; - fn get_name(&self) -> Option; + fn get_name(&self) -> Option; fn get_parent(&self) -> Option; @@ -176,7 +177,7 @@ impl> TimelineElementExt for O { } } - fn get_name(&self) -> Option { + fn get_name(&self) -> Option { unsafe { from_glib_full(ffi::ges_timeline_element_get_name(self.to_glib_none().0)) } diff --git a/gstreamer-editing-services/src/auto/track_element.rs b/gstreamer-editing-services/src/auto/track_element.rs index d8d4eedd4..ac8051ddf 100644 --- a/gstreamer-editing-services/src/auto/track_element.rs +++ b/gstreamer-editing-services/src/auto/track_element.rs @@ -10,6 +10,7 @@ use TimelineElement; use Track; use TrackType; use ffi; +use glib::GString; use glib::StaticType; use glib::Value; use glib::object::Downcast; diff --git a/gstreamer-editing-services/src/auto/uri_clip.rs b/gstreamer-editing-services/src/auto/uri_clip.rs index 1304fd679..88db8ff7a 100644 --- a/gstreamer-editing-services/src/auto/uri_clip.rs +++ b/gstreamer-editing-services/src/auto/uri_clip.rs @@ -7,6 +7,7 @@ use Container; use Extractable; use TimelineElement; use ffi; +use glib::GString; use glib::StaticType; use glib::Value; use glib::object::Downcast; @@ -37,7 +38,7 @@ impl UriClip { } pub trait UriClipExt: 'static { - fn get_uri(&self) -> Option; + fn get_uri(&self) -> Option; fn is_image(&self) -> bool; @@ -59,7 +60,7 @@ pub trait UriClipExt: 'static { } impl> UriClipExt for O { - fn get_uri(&self) -> Option { + fn get_uri(&self) -> Option { unsafe { from_glib_none(ffi::ges_uri_clip_get_uri(self.to_glib_none().0)) } diff --git a/gstreamer-editing-services/src/auto/uri_source_asset.rs b/gstreamer-editing-services/src/auto/uri_source_asset.rs index 6e42d1a5d..71e63d39c 100644 --- a/gstreamer-editing-services/src/auto/uri_source_asset.rs +++ b/gstreamer-editing-services/src/auto/uri_source_asset.rs @@ -5,6 +5,7 @@ use Asset; use UriClipAsset; use ffi; +use glib::GString; use glib::object::IsA; use glib::translate::*; use gst_pbutils; @@ -22,7 +23,7 @@ pub trait UriSourceAssetExt: 'static { fn get_stream_info(&self) -> Option; - fn get_stream_uri(&self) -> Option; + fn get_stream_uri(&self) -> Option; } impl> UriSourceAssetExt for O { @@ -38,7 +39,7 @@ impl> UriSourceAssetExt for O { } } - fn get_stream_uri(&self) -> Option { + fn get_stream_uri(&self) -> Option { unsafe { from_glib_none(ffi::ges_uri_source_asset_get_stream_uri(self.to_glib_none().0)) } diff --git a/gstreamer-editing-services/src/auto/versions.txt b/gstreamer-editing-services/src/auto/versions.txt index f37f40598..c6de1a3f8 100644 --- a/gstreamer-editing-services/src/auto/versions.txt +++ b/gstreamer-editing-services/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 811e711) +Generated by gir (https://github.com/gtk-rs/gir @ c5498ac) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-gl/src/auto/gl_window.rs b/gstreamer-gl/src/auto/gl_window.rs index 90e64164d..f0331101a 100644 --- a/gstreamer-gl/src/auto/gl_window.rs +++ b/gstreamer-gl/src/auto/gl_window.rs @@ -5,6 +5,7 @@ use GLContext; use GLDisplay; use ffi; +use glib::GString; use glib::object::Downcast; use glib::object::IsA; use glib::signal::SignalHandlerId; @@ -174,11 +175,11 @@ impl> GLWindowExt for O { unsafe extern "C" fn key_event_trampoline

(this: *mut ffi::GstGLWindow, id: *mut libc::c_char, key: *mut libc::c_char, f: glib_ffi::gpointer) where P: IsA { let f: &&(Fn(&P, &str, &str) + Send + Sync + 'static) = transmute(f); - f(&GLWindow::from_glib_borrow(this).downcast_unchecked(), &String::from_glib_none(id), &String::from_glib_none(key)) + f(&GLWindow::from_glib_borrow(this).downcast_unchecked(), &GString::from_glib_borrow(id), &GString::from_glib_borrow(key)) } unsafe extern "C" fn mouse_event_trampoline

(this: *mut ffi::GstGLWindow, id: *mut libc::c_char, button: libc::c_int, x: libc::c_double, y: libc::c_double, f: glib_ffi::gpointer) where P: IsA { let f: &&(Fn(&P, &str, i32, f64, f64) + Send + Sync + 'static) = transmute(f); - f(&GLWindow::from_glib_borrow(this).downcast_unchecked(), &String::from_glib_none(id), button, x, y) + f(&GLWindow::from_glib_borrow(this).downcast_unchecked(), &GString::from_glib_borrow(id), button, x, y) } diff --git a/gstreamer-gl/src/auto/glsl_stage.rs b/gstreamer-gl/src/auto/glsl_stage.rs index 86eeba14b..3e5618e22 100644 --- a/gstreamer-gl/src/auto/glsl_stage.rs +++ b/gstreamer-gl/src/auto/glsl_stage.rs @@ -7,6 +7,7 @@ use GLContext; use GLSLProfile; use GLSLVersion; use ffi; +use glib::GString; use glib::translate::*; use gst; use gst_ffi; diff --git a/gstreamer-gl/src/auto/versions.txt b/gstreamer-gl/src/auto/versions.txt index f37f40598..c6de1a3f8 100644 --- a/gstreamer-gl/src/auto/versions.txt +++ b/gstreamer-gl/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 811e711) +Generated by gir (https://github.com/gtk-rs/gir @ c5498ac) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-net/src/auto/net_client_clock.rs b/gstreamer-net/src/auto/net_client_clock.rs index a6349cbda..b6032c5ff 100644 --- a/gstreamer-net/src/auto/net_client_clock.rs +++ b/gstreamer-net/src/auto/net_client_clock.rs @@ -3,6 +3,7 @@ // DO NOT EDIT use ffi; +use glib::GString; use glib::StaticType; use glib::Value; use glib::signal::SignalHandlerId; @@ -27,9 +28,9 @@ glib_wrapper! { } impl NetClientClock { - pub fn get_property_address(&self) -> Option { + pub fn get_property_address(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, b"address\0".as_ptr() as *const _, value.to_glib_none_mut().0); value.get() } diff --git a/gstreamer-net/src/auto/net_time_provider.rs b/gstreamer-net/src/auto/net_time_provider.rs index 3e149d9c7..c87c15f63 100644 --- a/gstreamer-net/src/auto/net_time_provider.rs +++ b/gstreamer-net/src/auto/net_time_provider.rs @@ -3,6 +3,7 @@ // DO NOT EDIT use ffi; +use glib::GString; use glib::StaticType; use glib::Value; use glib::signal::SignalHandlerId; @@ -40,9 +41,9 @@ impl NetTimeProvider { } } - pub fn get_property_address(&self) -> Option { + pub fn get_property_address(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, b"address\0".as_ptr() as *const _, value.to_glib_none_mut().0); value.get() } diff --git a/gstreamer-net/src/auto/versions.txt b/gstreamer-net/src/auto/versions.txt index f37f40598..c6de1a3f8 100644 --- a/gstreamer-net/src/auto/versions.txt +++ b/gstreamer-net/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 811e711) +Generated by gir (https://github.com/gtk-rs/gir @ c5498ac) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-pbutils/src/auto/discoverer_audio_info.rs b/gstreamer-pbutils/src/auto/discoverer_audio_info.rs index 2a9a0cbff..cdd4904ec 100644 --- a/gstreamer-pbutils/src/auto/discoverer_audio_info.rs +++ b/gstreamer-pbutils/src/auto/discoverer_audio_info.rs @@ -4,6 +4,7 @@ use DiscovererStreamInfo; use ffi; +use glib::GString; use glib::translate::*; glib_wrapper! { @@ -40,7 +41,7 @@ impl DiscovererAudioInfo { } } - pub fn get_language(&self) -> Option { + pub fn get_language(&self) -> Option { unsafe { from_glib_none(ffi::gst_discoverer_audio_info_get_language(self.to_glib_none().0)) } diff --git a/gstreamer-pbutils/src/auto/discoverer_info.rs b/gstreamer-pbutils/src/auto/discoverer_info.rs index de6bf46e1..e69668805 100644 --- a/gstreamer-pbutils/src/auto/discoverer_info.rs +++ b/gstreamer-pbutils/src/auto/discoverer_info.rs @@ -7,6 +7,7 @@ use DiscovererSerializeFlags; use DiscovererStreamInfo; use ffi; use glib; +use glib::GString; use glib::object::IsA; use glib::translate::*; use gst; @@ -45,7 +46,7 @@ pub trait DiscovererInfoExt: 'static { fn get_misc(&self) -> Option; - fn get_missing_elements_installer_details(&self) -> Vec; + fn get_missing_elements_installer_details(&self) -> Vec; fn get_result(&self) -> DiscovererResult; @@ -63,7 +64,7 @@ pub trait DiscovererInfoExt: 'static { fn get_toc(&self) -> Option; - fn get_uri(&self) -> Option; + fn get_uri(&self) -> Option; fn get_video_streams(&self) -> Vec; @@ -108,7 +109,7 @@ impl> DiscovererInfoExt for O { } } - fn get_missing_elements_installer_details(&self) -> Vec { + fn get_missing_elements_installer_details(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_discoverer_info_get_missing_elements_installer_details(const_override(self.to_glib_none().0))) } @@ -162,7 +163,7 @@ impl> DiscovererInfoExt for O { } } - fn get_uri(&self) -> Option { + fn get_uri(&self) -> Option { unsafe { from_glib_none(ffi::gst_discoverer_info_get_uri(const_override(self.to_glib_none().0))) } diff --git a/gstreamer-pbutils/src/auto/discoverer_stream_info.rs b/gstreamer-pbutils/src/auto/discoverer_stream_info.rs index 04bd14dd6..aa95b0686 100644 --- a/gstreamer-pbutils/src/auto/discoverer_stream_info.rs +++ b/gstreamer-pbutils/src/auto/discoverer_stream_info.rs @@ -3,6 +3,7 @@ // DO NOT EDIT use ffi; +use glib::GString; use glib::object::IsA; use glib::translate::*; use gst; @@ -27,9 +28,9 @@ pub trait DiscovererStreamInfoExt: 'static { fn get_previous(&self) -> Option; - fn get_stream_id(&self) -> Option; + fn get_stream_id(&self) -> Option; - fn get_stream_type_nick(&self) -> String; + fn get_stream_type_nick(&self) -> GString; fn get_tags(&self) -> Option; @@ -61,13 +62,13 @@ impl> DiscovererStreamInfoExt for O { } } - fn get_stream_id(&self) -> Option { + fn get_stream_id(&self) -> Option { unsafe { from_glib_none(ffi::gst_discoverer_stream_info_get_stream_id(self.to_glib_none().0)) } } - fn get_stream_type_nick(&self) -> String { + fn get_stream_type_nick(&self) -> GString { unsafe { from_glib_none(ffi::gst_discoverer_stream_info_get_stream_type_nick(self.to_glib_none().0)) } diff --git a/gstreamer-pbutils/src/auto/discoverer_subtitle_info.rs b/gstreamer-pbutils/src/auto/discoverer_subtitle_info.rs index 379c62859..bf7288710 100644 --- a/gstreamer-pbutils/src/auto/discoverer_subtitle_info.rs +++ b/gstreamer-pbutils/src/auto/discoverer_subtitle_info.rs @@ -4,6 +4,7 @@ use DiscovererStreamInfo; use ffi; +use glib::GString; use glib::translate::*; glib_wrapper! { @@ -15,7 +16,7 @@ glib_wrapper! { } impl DiscovererSubtitleInfo { - pub fn get_language(&self) -> Option { + pub fn get_language(&self) -> Option { unsafe { from_glib_none(ffi::gst_discoverer_subtitle_info_get_language(self.to_glib_none().0)) } diff --git a/gstreamer-pbutils/src/auto/encoding_profile.rs b/gstreamer-pbutils/src/auto/encoding_profile.rs index 7eb7e12f6..ac5315ffc 100644 --- a/gstreamer-pbutils/src/auto/encoding_profile.rs +++ b/gstreamer-pbutils/src/auto/encoding_profile.rs @@ -4,6 +4,7 @@ use DiscovererInfo; use ffi; +use glib::GString; use glib::object::IsA; use glib::translate::*; use gst; @@ -44,25 +45,25 @@ pub trait EncodingProfileExt: 'static { fn get_allow_dynamic_output(&self) -> bool; - fn get_description(&self) -> Option; + fn get_description(&self) -> Option; - fn get_file_extension(&self) -> Option; + fn get_file_extension(&self) -> Option; fn get_format(&self) -> gst::Caps; fn get_input_caps(&self) -> gst::Caps; - fn get_name(&self) -> Option; + fn get_name(&self) -> Option; fn get_presence(&self) -> u32; - fn get_preset(&self) -> Option; + fn get_preset(&self) -> Option; - fn get_preset_name(&self) -> Option; + fn get_preset_name(&self) -> Option; fn get_restriction(&self) -> Option; - fn get_type_nick(&self) -> Option; + fn get_type_nick(&self) -> Option; fn is_enabled(&self) -> bool; @@ -82,13 +83,13 @@ impl> EncodingProfileExt for O { } } - fn get_description(&self) -> Option { + fn get_description(&self) -> Option { unsafe { from_glib_none(ffi::gst_encoding_profile_get_description(self.to_glib_none().0)) } } - fn get_file_extension(&self) -> Option { + fn get_file_extension(&self) -> Option { unsafe { from_glib_none(ffi::gst_encoding_profile_get_file_extension(self.to_glib_none().0)) } @@ -106,7 +107,7 @@ impl> EncodingProfileExt for O { } } - fn get_name(&self) -> Option { + fn get_name(&self) -> Option { unsafe { from_glib_none(ffi::gst_encoding_profile_get_name(self.to_glib_none().0)) } @@ -118,13 +119,13 @@ impl> EncodingProfileExt for O { } } - fn get_preset(&self) -> Option { + fn get_preset(&self) -> Option { unsafe { from_glib_none(ffi::gst_encoding_profile_get_preset(self.to_glib_none().0)) } } - fn get_preset_name(&self) -> Option { + fn get_preset_name(&self) -> Option { unsafe { from_glib_none(ffi::gst_encoding_profile_get_preset_name(self.to_glib_none().0)) } @@ -136,7 +137,7 @@ impl> EncodingProfileExt for O { } } - fn get_type_nick(&self) -> Option { + fn get_type_nick(&self) -> Option { unsafe { from_glib_none(ffi::gst_encoding_profile_get_type_nick(self.to_glib_none().0)) } diff --git a/gstreamer-pbutils/src/auto/encoding_target.rs b/gstreamer-pbutils/src/auto/encoding_target.rs index 80121f516..b56ce43b4 100644 --- a/gstreamer-pbutils/src/auto/encoding_target.rs +++ b/gstreamer-pbutils/src/auto/encoding_target.rs @@ -5,6 +5,7 @@ use EncodingProfile; use Error; use ffi; +use glib::GString; use glib::object::IsA; use glib::translate::*; use std; @@ -51,11 +52,11 @@ unsafe impl Send for EncodingTarget {} unsafe impl Sync for EncodingTarget {} pub trait EncodingTargetExt: 'static { - fn get_category(&self) -> String; + fn get_category(&self) -> GString; - fn get_description(&self) -> String; + fn get_description(&self) -> GString; - fn get_name(&self) -> String; + fn get_name(&self) -> GString; fn get_profile(&self, name: &str) -> Option; @@ -67,19 +68,19 @@ pub trait EncodingTargetExt: 'static { } impl> EncodingTargetExt for O { - fn get_category(&self) -> String { + fn get_category(&self) -> GString { unsafe { from_glib_none(ffi::gst_encoding_target_get_category(self.to_glib_none().0)) } } - fn get_description(&self) -> String { + fn get_description(&self) -> GString { unsafe { from_glib_none(ffi::gst_encoding_target_get_description(self.to_glib_none().0)) } } - fn get_name(&self) -> String { + fn get_name(&self) -> GString { unsafe { from_glib_none(ffi::gst_encoding_target_get_name(self.to_glib_none().0)) } diff --git a/gstreamer-pbutils/src/auto/functions.rs b/gstreamer-pbutils/src/auto/functions.rs index 5040036fb..6dfe578e6 100644 --- a/gstreamer-pbutils/src/auto/functions.rs +++ b/gstreamer-pbutils/src/auto/functions.rs @@ -4,6 +4,7 @@ use EncodingTarget; use ffi; +use glib::GString; use glib::translate::*; use std::mem; @@ -17,28 +18,28 @@ pub fn encoding_list_all_targets<'a, P: Into>>(categoryname: P) } } -pub fn encoding_list_available_categories() -> Vec { +pub fn encoding_list_available_categories() -> Vec { assert_initialized_main_thread!(); unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_encoding_list_available_categories()) } } -pub fn pb_utils_get_element_description(factory_name: &str) -> Option { +pub fn pb_utils_get_element_description(factory_name: &str) -> Option { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_pb_utils_get_element_description(factory_name.to_glib_none().0)) } } -pub fn pb_utils_get_sink_description(protocol: &str) -> Option { +pub fn pb_utils_get_sink_description(protocol: &str) -> Option { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_pb_utils_get_sink_description(protocol.to_glib_none().0)) } } -pub fn pb_utils_get_source_description(protocol: &str) -> Option { +pub fn pb_utils_get_source_description(protocol: &str) -> Option { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_pb_utils_get_source_description(protocol.to_glib_none().0)) @@ -57,7 +58,7 @@ pub fn plugins_base_version() -> (u32, u32, u32, u32) { } } -pub fn plugins_base_version_string() -> Option { +pub fn plugins_base_version_string() -> Option { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_plugins_base_version_string()) diff --git a/gstreamer-pbutils/src/auto/versions.txt b/gstreamer-pbutils/src/auto/versions.txt index f37f40598..c6de1a3f8 100644 --- a/gstreamer-pbutils/src/auto/versions.txt +++ b/gstreamer-pbutils/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 811e711) +Generated by gir (https://github.com/gtk-rs/gir @ c5498ac) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-player/src/auto/player.rs b/gstreamer-player/src/auto/player.rs index 2f73ae987..075cdd5f9 100644 --- a/gstreamer-player/src/auto/player.rs +++ b/gstreamer-player/src/auto/player.rs @@ -13,6 +13,7 @@ use PlayerVideoInfo; use PlayerVisualization; use ffi; use glib; +use glib::GString; use glib::StaticType; use glib::Value; use glib::signal::SignalHandlerId; @@ -68,7 +69,7 @@ impl Player { } } - pub fn get_current_visualization(&self) -> Option { + pub fn get_current_visualization(&self) -> Option { unsafe { from_glib_full(ffi::gst_player_get_current_visualization(self.to_glib_none().0)) } @@ -122,13 +123,13 @@ impl Player { } } - pub fn get_subtitle_uri(&self) -> Option { + pub fn get_subtitle_uri(&self) -> Option { unsafe { from_glib_full(ffi::gst_player_get_subtitle_uri(self.to_glib_none().0)) } } - pub fn get_uri(&self) -> Option { + pub fn get_uri(&self) -> Option { unsafe { from_glib_full(ffi::gst_player_get_uri(self.to_glib_none().0)) } @@ -282,9 +283,9 @@ impl Player { } } - pub fn get_property_suburi(&self) -> Option { + pub fn get_property_suburi(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, b"suburi\0".as_ptr() as *const _, value.to_glib_none_mut().0); value.get() } @@ -589,7 +590,7 @@ unsafe extern "C" fn state_changed_trampoline(this: *mut ffi::GstPlayer, object: unsafe extern "C" fn uri_loaded_trampoline(this: *mut ffi::GstPlayer, object: *mut libc::c_char, f: glib_ffi::gpointer) { let f: &&(Fn(&Player, &str) + Send + 'static) = transmute(f); - f(&from_glib_borrow(this), &String::from_glib_none(object)) + f(&from_glib_borrow(this), &GString::from_glib_borrow(object)) } unsafe extern "C" fn video_dimensions_changed_trampoline(this: *mut ffi::GstPlayer, object: libc::c_int, p0: libc::c_int, f: glib_ffi::gpointer) { diff --git a/gstreamer-player/src/auto/player_audio_info.rs b/gstreamer-player/src/auto/player_audio_info.rs index 6e0900b44..27c5e96bd 100644 --- a/gstreamer-player/src/auto/player_audio_info.rs +++ b/gstreamer-player/src/auto/player_audio_info.rs @@ -4,6 +4,7 @@ use PlayerStreamInfo; use ffi; +use glib::GString; use glib::translate::*; glib_wrapper! { @@ -27,7 +28,7 @@ impl PlayerAudioInfo { } } - pub fn get_language(&self) -> Option { + pub fn get_language(&self) -> Option { unsafe { from_glib_none(ffi::gst_player_audio_info_get_language(self.to_glib_none().0)) } diff --git a/gstreamer-player/src/auto/player_media_info.rs b/gstreamer-player/src/auto/player_media_info.rs index bf23fdeb2..044d8f7e8 100644 --- a/gstreamer-player/src/auto/player_media_info.rs +++ b/gstreamer-player/src/auto/player_media_info.rs @@ -7,6 +7,7 @@ use PlayerStreamInfo; use PlayerSubtitleInfo; use PlayerVideoInfo; use ffi; +use glib::GString; use glib::translate::*; use gst; @@ -25,7 +26,7 @@ impl PlayerMediaInfo { } } - pub fn get_container_format(&self) -> Option { + pub fn get_container_format(&self) -> Option { unsafe { from_glib_none(ffi::gst_player_media_info_get_container_format(self.to_glib_none().0)) } @@ -85,13 +86,13 @@ impl PlayerMediaInfo { } } - pub fn get_title(&self) -> Option { + pub fn get_title(&self) -> Option { unsafe { from_glib_none(ffi::gst_player_media_info_get_title(self.to_glib_none().0)) } } - pub fn get_uri(&self) -> String { + pub fn get_uri(&self) -> GString { unsafe { from_glib_none(ffi::gst_player_media_info_get_uri(self.to_glib_none().0)) } diff --git a/gstreamer-player/src/auto/player_stream_info.rs b/gstreamer-player/src/auto/player_stream_info.rs index 37d5e10ec..be8c46e1d 100644 --- a/gstreamer-player/src/auto/player_stream_info.rs +++ b/gstreamer-player/src/auto/player_stream_info.rs @@ -3,6 +3,7 @@ // DO NOT EDIT use ffi; +use glib::GString; use glib::object::IsA; use glib::translate::*; use gst; @@ -21,11 +22,11 @@ unsafe impl Sync for PlayerStreamInfo {} pub trait PlayerStreamInfoExt: 'static { fn get_caps(&self) -> Option; - fn get_codec(&self) -> Option; + fn get_codec(&self) -> Option; fn get_index(&self) -> i32; - fn get_stream_type(&self) -> String; + fn get_stream_type(&self) -> GString; fn get_tags(&self) -> Option; } @@ -37,7 +38,7 @@ impl> PlayerStreamInfoExt for O { } } - fn get_codec(&self) -> Option { + fn get_codec(&self) -> Option { unsafe { from_glib_none(ffi::gst_player_stream_info_get_codec(const_override(self.to_glib_none().0))) } @@ -49,7 +50,7 @@ impl> PlayerStreamInfoExt for O { } } - fn get_stream_type(&self) -> String { + fn get_stream_type(&self) -> GString { unsafe { from_glib_none(ffi::gst_player_stream_info_get_stream_type(const_override(self.to_glib_none().0))) } diff --git a/gstreamer-player/src/auto/player_subtitle_info.rs b/gstreamer-player/src/auto/player_subtitle_info.rs index 937e0300d..51d5a5c17 100644 --- a/gstreamer-player/src/auto/player_subtitle_info.rs +++ b/gstreamer-player/src/auto/player_subtitle_info.rs @@ -4,6 +4,7 @@ use PlayerStreamInfo; use ffi; +use glib::GString; use glib::translate::*; glib_wrapper! { @@ -15,7 +16,7 @@ glib_wrapper! { } impl PlayerSubtitleInfo { - pub fn get_language(&self) -> Option { + pub fn get_language(&self) -> Option { unsafe { from_glib_none(ffi::gst_player_subtitle_info_get_language(self.to_glib_none().0)) } diff --git a/gstreamer-player/src/auto/versions.txt b/gstreamer-player/src/auto/versions.txt index f37f40598..c6de1a3f8 100644 --- a/gstreamer-player/src/auto/versions.txt +++ b/gstreamer-player/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 811e711) +Generated by gir (https://github.com/gtk-rs/gir @ c5498ac) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-rtsp-server/src/auto/rtsp_auth.rs b/gstreamer-rtsp-server/src/auto/rtsp_auth.rs index 791d10931..073289ebb 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_auth.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_auth.rs @@ -6,6 +6,7 @@ use RTSPToken; use ffi; use gio; use gio_ffi; +use glib::GString; use glib::object::Downcast; use glib::object::IsA; use glib::signal::SignalHandlerId; @@ -40,7 +41,7 @@ impl RTSPAuth { } } - pub fn make_basic(user: &str, pass: &str) -> String { + pub fn make_basic(user: &str, pass: &str) -> GString { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_rtsp_auth_make_basic(user.to_glib_none().0, pass.to_glib_none().0)) diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media.rs b/gstreamer-rtsp-server/src/auto/rtsp_media.rs index 8dfaae865..989b55fc8 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media.rs @@ -10,6 +10,7 @@ use RTSPSuspendMode; use RTSPTransportMode; use ffi; use glib; +use glib::GString; use glib::StaticType; use glib::Value; use glib::object::Downcast; @@ -66,7 +67,7 @@ pub trait RTSPMediaExt: 'static { fn get_latency(&self) -> u32; - fn get_multicast_iface(&self) -> Option; + fn get_multicast_iface(&self) -> Option; //fn get_permissions(&self) -> /*Ignored*/Option; @@ -76,7 +77,7 @@ pub trait RTSPMediaExt: 'static { fn get_publish_clock_mode(&self) -> RTSPPublishClockMode; - fn get_range_string(&self, play: bool, unit: gst_rtsp::RTSPRangeUnit) -> Option; + fn get_range_string(&self, play: bool, unit: gst_rtsp::RTSPRangeUnit) -> Option; fn get_retransmission_time(&self) -> gst::ClockTime; @@ -266,7 +267,7 @@ impl> RTSPMediaExt for O { } } - fn get_multicast_iface(&self) -> Option { + fn get_multicast_iface(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_media_get_multicast_iface(self.to_glib_none().0)) } @@ -294,7 +295,7 @@ impl> RTSPMediaExt for O { } } - fn get_range_string(&self, play: bool, unit: gst_rtsp::RTSPRangeUnit) -> Option { + fn get_range_string(&self, play: bool, unit: gst_rtsp::RTSPRangeUnit) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_media_get_range_string(self.to_glib_none().0, play.to_glib(), unit.to_glib())) } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs b/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs index b56a22cf7..09ff10138 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media_factory.rs @@ -9,6 +9,7 @@ use RTSPSuspendMode; use RTSPTransportMode; use ffi; use glib; +use glib::GString; use glib::StaticType; use glib::Value; use glib::object::Downcast; @@ -64,11 +65,11 @@ pub trait RTSPMediaFactoryExt: 'static { fn get_latency(&self) -> u32; - fn get_launch(&self) -> Option; + fn get_launch(&self) -> Option; fn get_media_gtype(&self) -> glib::types::Type; - fn get_multicast_iface(&self) -> Option; + fn get_multicast_iface(&self) -> Option; //fn get_permissions(&self) -> /*Ignored*/Option; @@ -198,7 +199,7 @@ impl> RTSPMediaFactoryExt for O { } } - fn get_launch(&self) -> Option { + fn get_launch(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_media_factory_get_launch(self.to_glib_none().0)) } @@ -210,7 +211,7 @@ impl> RTSPMediaFactoryExt for O { } } - fn get_multicast_iface(&self) -> Option { + fn get_multicast_iface(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_media_factory_get_multicast_iface(self.to_glib_none().0)) } 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 625bbb104..2bf6ed334 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_media_factory_uri.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_media_factory_uri.rs @@ -4,6 +4,7 @@ use RTSPMediaFactory; use ffi; +use glib::GString; use glib::StaticType; use glib::Value; use glib::object::Downcast; @@ -43,7 +44,7 @@ unsafe impl Send for RTSPMediaFactoryURI {} unsafe impl Sync for RTSPMediaFactoryURI {} pub trait RTSPMediaFactoryURIExt: 'static { - fn get_uri(&self) -> Option; + fn get_uri(&self) -> Option; fn set_uri(&self, uri: &str); @@ -57,7 +58,7 @@ pub trait RTSPMediaFactoryURIExt: 'static { } impl> RTSPMediaFactoryURIExt for O { - fn get_uri(&self) -> Option { + fn get_uri(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_media_factory_uri_get_uri(self.to_glib_none().0)) } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_mount_points.rs b/gstreamer-rtsp-server/src/auto/rtsp_mount_points.rs index 26360fd4d..361405b8c 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_mount_points.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_mount_points.rs @@ -4,6 +4,7 @@ use RTSPMediaFactory; use ffi; +use glib::GString; use glib::object::IsA; use glib::translate::*; use gst_rtsp; @@ -38,7 +39,7 @@ unsafe impl Sync for RTSPMountPoints {} pub trait RTSPMountPointsExt: 'static { fn add_factory>(&self, path: &str, factory: &P); - fn make_path(&self, url: &gst_rtsp::RTSPUrl) -> Option; + fn make_path(&self, url: &gst_rtsp::RTSPUrl) -> Option; fn match_(&self, path: &str) -> (RTSPMediaFactory, i32); @@ -52,7 +53,7 @@ impl> RTSPMountPointsExt for O { } } - fn make_path(&self, url: &gst_rtsp::RTSPUrl) -> Option { + fn make_path(&self, url: &gst_rtsp::RTSPUrl) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_mount_points_make_path(self.to_glib_none().0, url.to_glib_none().0)) } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_server.rs b/gstreamer-rtsp-server/src/auto/rtsp_server.rs index 96a5be423..f698ee2dc 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_server.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_server.rs @@ -11,6 +11,7 @@ use RTSPThreadPool; use ffi; use gio; use glib; +use glib::GString; use glib::object::Downcast; use glib::object::IsA; use glib::signal::SignalHandlerId; @@ -61,7 +62,7 @@ pub trait RTSPServerExt: 'static { fn create_source<'a, P: Into>>(&self, cancellable: P) -> Result; - fn get_address(&self) -> Option; + fn get_address(&self) -> Option; fn get_auth(&self) -> Option; @@ -71,7 +72,7 @@ pub trait RTSPServerExt: 'static { fn get_mount_points(&self) -> Option; - fn get_service(&self) -> Option; + fn get_service(&self) -> Option; fn get_session_pool(&self) -> Option; @@ -133,7 +134,7 @@ impl> RTSPServerExt for O { } } - fn get_address(&self) -> Option { + fn get_address(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_server_get_address(self.to_glib_none().0)) } @@ -163,7 +164,7 @@ impl> RTSPServerExt for O { } } - fn get_service(&self) -> Option { + fn get_service(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_server_get_service(self.to_glib_none().0)) } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_session.rs b/gstreamer-rtsp-server/src/auto/rtsp_session.rs index a95f2e819..f820dafcc 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_session.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_session.rs @@ -5,6 +5,7 @@ use RTSPMedia; use RTSPSessionMedia; use ffi; +use glib::GString; use glib::StaticType; use glib::Value; use glib::object::Downcast; @@ -43,11 +44,11 @@ pub trait RTSPSessionExt: 'static { //fn filter<'a, P: Into>, Q: Into>>(&self, func: P, user_data: Q) -> Vec; - fn get_header(&self) -> Option; + fn get_header(&self) -> Option; fn get_media(&self, path: &str) -> (Option, i32); - fn get_sessionid(&self) -> Option; + fn get_sessionid(&self) -> Option; fn get_timeout(&self) -> u32; @@ -89,7 +90,7 @@ impl> RTSPSessionExt for O { // unsafe { TODO: call ffi::gst_rtsp_session_filter() } //} - fn get_header(&self) -> Option { + fn get_header(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_session_get_header(self.to_glib_none().0)) } @@ -103,7 +104,7 @@ impl> RTSPSessionExt for O { } } - fn get_sessionid(&self) -> Option { + fn get_sessionid(&self) -> Option { unsafe { from_glib_none(ffi::gst_rtsp_session_get_sessionid(self.to_glib_none().0)) } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_session_media.rs b/gstreamer-rtsp-server/src/auto/rtsp_session_media.rs index 986cb4072..847280da5 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_session_media.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_session_media.rs @@ -6,6 +6,7 @@ use RTSPMedia; use RTSPStreamTransport; use ffi; use glib; +use glib::GString; use glib::object::IsA; use glib::translate::*; use gst; @@ -38,7 +39,7 @@ pub trait RTSPSessionMediaExt: 'static { fn get_media(&self) -> Option; - fn get_rtpinfo(&self) -> Option; + fn get_rtpinfo(&self) -> Option; //fn get_rtsp_state(&self) -> /*Ignored*/gst_rtsp::RTSPState; @@ -72,7 +73,7 @@ impl> RTSPSessionMediaExt for O { } } - fn get_rtpinfo(&self) -> Option { + fn get_rtpinfo(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_session_media_get_rtpinfo(self.to_glib_none().0)) } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_stream.rs b/gstreamer-rtsp-server/src/auto/rtsp_stream.rs index 7c1921b43..d0f591b79 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_stream.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_stream.rs @@ -9,6 +9,7 @@ use RTSPStreamTransport; use ffi; use gio; use glib; +use glib::GString; use glib::object::Downcast; use glib::object::IsA; use glib::signal::SignalHandlerId; @@ -55,7 +56,7 @@ pub trait RTSPStreamExt: 'static { fn get_caps(&self) -> Option; - fn get_control(&self) -> Option; + fn get_control(&self) -> Option; fn get_current_seqnum(&self) -> u16; @@ -69,7 +70,7 @@ pub trait RTSPStreamExt: 'static { fn get_multicast_address(&self, family: gio::SocketFamily) -> Option; - fn get_multicast_iface(&self) -> Option; + fn get_multicast_iface(&self) -> Option; fn get_profiles(&self) -> gst_rtsp::RTSPProfile; @@ -215,7 +216,7 @@ impl> RTSPStreamExt for O { } } - fn get_control(&self) -> Option { + fn get_control(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_stream_get_control(self.to_glib_none().0)) } @@ -257,7 +258,7 @@ impl> RTSPStreamExt for O { } } - fn get_multicast_iface(&self) -> Option { + fn get_multicast_iface(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_stream_get_multicast_iface(self.to_glib_none().0)) } diff --git a/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs b/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs index 3fce76479..404e45756 100644 --- a/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs +++ b/gstreamer-rtsp-server/src/auto/rtsp_stream_transport.rs @@ -5,6 +5,7 @@ use RTSPStream; use ffi; use glib; +use glib::GString; use glib::object::IsA; use glib::translate::*; use gst; @@ -25,7 +26,7 @@ impl RTSPStreamTransport { } pub trait RTSPStreamTransportExt: 'static { - fn get_rtpinfo(&self, start_time: gst::ClockTime) -> Option; + fn get_rtpinfo(&self, start_time: gst::ClockTime) -> Option; fn get_stream(&self) -> Option; @@ -57,7 +58,7 @@ pub trait RTSPStreamTransportExt: 'static { } impl> RTSPStreamTransportExt for O { - fn get_rtpinfo(&self, start_time: gst::ClockTime) -> Option { + fn get_rtpinfo(&self, start_time: gst::ClockTime) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_stream_transport_get_rtpinfo(self.to_glib_none().0, start_time.to_glib())) } diff --git a/gstreamer-rtsp-server/src/auto/versions.txt b/gstreamer-rtsp-server/src/auto/versions.txt index f37f40598..c6de1a3f8 100644 --- a/gstreamer-rtsp-server/src/auto/versions.txt +++ b/gstreamer-rtsp-server/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 811e711) +Generated by gir (https://github.com/gtk-rs/gir @ c5498ac) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-rtsp/src/auto/rtsp_url.rs b/gstreamer-rtsp/src/auto/rtsp_url.rs index 7c9e2041a..a067837ab 100644 --- a/gstreamer-rtsp/src/auto/rtsp_url.rs +++ b/gstreamer-rtsp/src/auto/rtsp_url.rs @@ -4,6 +4,7 @@ use RTSPResult; use ffi; +use glib::GString; use glib::translate::*; use std::ptr; @@ -19,13 +20,13 @@ glib_wrapper! { } impl RTSPUrl { - pub fn decode_path_components(&self) -> Vec { + pub fn decode_path_components(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_rtsp_url_decode_path_components(self.to_glib_none().0)) } } - pub fn get_request_uri(&self) -> Option { + pub fn get_request_uri(&self) -> Option { unsafe { from_glib_full(ffi::gst_rtsp_url_get_request_uri(self.to_glib_none().0)) } diff --git a/gstreamer-rtsp/src/auto/versions.txt b/gstreamer-rtsp/src/auto/versions.txt index f37f40598..c6de1a3f8 100644 --- a/gstreamer-rtsp/src/auto/versions.txt +++ b/gstreamer-rtsp/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 811e711) +Generated by gir (https://github.com/gtk-rs/gir @ c5498ac) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-sdp/src/auto/versions.txt b/gstreamer-sdp/src/auto/versions.txt index f37f40598..c6de1a3f8 100644 --- a/gstreamer-sdp/src/auto/versions.txt +++ b/gstreamer-sdp/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 811e711) +Generated by gir (https://github.com/gtk-rs/gir @ c5498ac) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-video/src/auto/versions.txt b/gstreamer-video/src/auto/versions.txt index f37f40598..c6de1a3f8 100644 --- a/gstreamer-video/src/auto/versions.txt +++ b/gstreamer-video/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 811e711) +Generated by gir (https://github.com/gtk-rs/gir @ c5498ac) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-webrtc/src/auto/versions.txt b/gstreamer-webrtc/src/auto/versions.txt index f37f40598..c6de1a3f8 100644 --- a/gstreamer-webrtc/src/auto/versions.txt +++ b/gstreamer-webrtc/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 811e711) +Generated by gir (https://github.com/gtk-rs/gir @ c5498ac) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs b/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs index fbf1c4bac..82b14e2bf 100644 --- a/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs +++ b/gstreamer-webrtc/src/auto/web_rtcdtls_transport.rs @@ -5,6 +5,7 @@ use WebRTCDTLSTransportState; use WebRTCICETransport; use ffi; +use glib::GString; use glib::StaticType; use glib::Value; use glib::signal::SignalHandlerId; @@ -37,9 +38,9 @@ impl WebRTCDTLSTransport { } } - pub fn get_property_certificate(&self) -> Option { + pub fn get_property_certificate(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, b"certificate\0".as_ptr() as *const _, value.to_glib_none_mut().0); value.get() } @@ -66,9 +67,9 @@ impl WebRTCDTLSTransport { } } - pub fn get_property_remote_certificate(&self) -> Option { + pub fn get_property_remote_certificate(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, b"remote-certificate\0".as_ptr() as *const _, value.to_glib_none_mut().0); value.get() } diff --git a/gstreamer-webrtc/src/auto/web_rtcice_transport.rs b/gstreamer-webrtc/src/auto/web_rtcice_transport.rs index 878fcfb0b..925bfd476 100644 --- a/gstreamer-webrtc/src/auto/web_rtcice_transport.rs +++ b/gstreamer-webrtc/src/auto/web_rtcice_transport.rs @@ -6,6 +6,7 @@ use WebRTCICEComponent; use WebRTCICEConnectionState; use WebRTCICEGatheringState; use ffi; +use glib::GString; use glib::StaticType; use glib::Value; use glib::signal::SignalHandlerId; @@ -112,7 +113,7 @@ unsafe impl Sync for WebRTCICETransport {} unsafe extern "C" fn on_new_candidate_trampoline(this: *mut ffi::GstWebRTCICETransport, object: *mut libc::c_char, f: glib_ffi::gpointer) { let f: &&(Fn(&WebRTCICETransport, &str) + Send + Sync + 'static) = transmute(f); - f(&from_glib_borrow(this), &String::from_glib_none(object)) + f(&from_glib_borrow(this), &GString::from_glib_borrow(object)) } unsafe extern "C" fn on_selected_candidate_pair_change_trampoline(this: *mut ffi::GstWebRTCICETransport, f: glib_ffi::gpointer) { diff --git a/gstreamer/src/auto/buffer_pool.rs b/gstreamer/src/auto/buffer_pool.rs index b1f80eae2..98bd65db0 100644 --- a/gstreamer/src/auto/buffer_pool.rs +++ b/gstreamer/src/auto/buffer_pool.rs @@ -5,6 +5,7 @@ use Object; use ffi; use glib; +use glib::GString; use glib::object::IsA; use glib::translate::*; @@ -20,7 +21,7 @@ unsafe impl Send for BufferPool {} unsafe impl Sync for BufferPool {} pub trait BufferPoolExt: 'static { - fn get_options(&self) -> Vec; + fn get_options(&self) -> Vec; fn has_option(&self, option: &str) -> bool; @@ -32,7 +33,7 @@ pub trait BufferPoolExt: 'static { } impl> BufferPoolExt for O { - fn get_options(&self) -> Vec { + fn get_options(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_buffer_pool_get_options(self.to_glib_none().0)) } diff --git a/gstreamer/src/auto/child_proxy.rs b/gstreamer/src/auto/child_proxy.rs index ef0a5a1d3..a9da654de 100644 --- a/gstreamer/src/auto/child_proxy.rs +++ b/gstreamer/src/auto/child_proxy.rs @@ -4,6 +4,7 @@ use ffi; use glib; +use glib::GString; use glib::object::Downcast; use glib::object::IsA; use glib::signal::SignalHandlerId; @@ -135,11 +136,11 @@ impl> ChildProxyExt for O { unsafe extern "C" fn child_added_trampoline

(this: *mut ffi::GstChildProxy, object: *mut gobject_ffi::GObject, name: *mut libc::c_char, f: glib_ffi::gpointer) where P: IsA { let f: &&(Fn(&P, &glib::Object, &str) + Send + Sync + 'static) = transmute(f); - f(&ChildProxy::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(object), &String::from_glib_none(name)) + f(&ChildProxy::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(object), &GString::from_glib_borrow(name)) } unsafe extern "C" fn child_removed_trampoline

(this: *mut ffi::GstChildProxy, object: *mut gobject_ffi::GObject, name: *mut libc::c_char, f: glib_ffi::gpointer) where P: IsA { let f: &&(Fn(&P, &glib::Object, &str) + Send + Sync + 'static) = transmute(f); - f(&ChildProxy::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(object), &String::from_glib_none(name)) + f(&ChildProxy::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(object), &GString::from_glib_borrow(name)) } diff --git a/gstreamer/src/auto/date_time.rs b/gstreamer/src/auto/date_time.rs index c4c4281b9..af6f05a79 100644 --- a/gstreamer/src/auto/date_time.rs +++ b/gstreamer/src/auto/date_time.rs @@ -4,6 +4,7 @@ use ffi; use glib; +use glib::GString; use glib::translate::*; glib_wrapper! { @@ -179,7 +180,7 @@ impl DateTime { } } - pub fn to_iso8601_string(&self) -> Option { + pub fn to_iso8601_string(&self) -> Option { unsafe { from_glib_full(ffi::gst_date_time_to_iso8601_string(self.to_glib_none().0)) } diff --git a/gstreamer/src/auto/device.rs b/gstreamer/src/auto/device.rs index 311bc8b17..bee79807d 100644 --- a/gstreamer/src/auto/device.rs +++ b/gstreamer/src/auto/device.rs @@ -7,6 +7,7 @@ use Element; use Object; use Structure; use ffi; +use glib::GString; use glib::object::Downcast; use glib::object::IsA; use glib::signal::SignalHandlerId; @@ -32,9 +33,9 @@ pub trait DeviceExt: 'static { fn get_caps(&self) -> Option; - fn get_device_class(&self) -> String; + fn get_device_class(&self) -> GString; - fn get_display_name(&self) -> String; + fn get_display_name(&self) -> GString; fn get_properties(&self) -> Option; @@ -62,13 +63,13 @@ impl> DeviceExt for O { } } - fn get_device_class(&self) -> String { + fn get_device_class(&self) -> GString { unsafe { from_glib_full(ffi::gst_device_get_device_class(self.to_glib_none().0)) } } - fn get_display_name(&self) -> String { + fn get_display_name(&self) -> GString { unsafe { from_glib_full(ffi::gst_device_get_display_name(self.to_glib_none().0)) } diff --git a/gstreamer/src/auto/device_monitor.rs b/gstreamer/src/auto/device_monitor.rs index 532157406..d905d0c94 100644 --- a/gstreamer/src/auto/device_monitor.rs +++ b/gstreamer/src/auto/device_monitor.rs @@ -8,6 +8,7 @@ use Device; use Object; use ffi; use glib; +use glib::GString; use glib::StaticType; use glib::Value; use glib::object::Downcast; @@ -38,7 +39,7 @@ pub trait DeviceMonitorExt: 'static { fn get_devices(&self) -> Vec; - fn get_providers(&self) -> Vec; + fn get_providers(&self) -> Vec; fn get_show_all_devices(&self) -> bool; @@ -80,7 +81,7 @@ impl> DeviceMonitorExt for O { } } - fn get_providers(&self) -> Vec { + fn get_providers(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_device_monitor_get_providers(self.to_glib_none().0)) } diff --git a/gstreamer/src/auto/device_provider.rs b/gstreamer/src/auto/device_provider.rs index 01c35a9ff..4547a1d5f 100644 --- a/gstreamer/src/auto/device_provider.rs +++ b/gstreamer/src/auto/device_provider.rs @@ -9,6 +9,7 @@ use Object; use Plugin; use ffi; use glib; +use glib::GString; use glib::object::Downcast; use glib::object::IsA; use glib::signal::SignalHandlerId; @@ -54,7 +55,7 @@ pub trait DeviceProviderExt: 'static { fn get_factory(&self) -> Option; - fn get_hidden_providers(&self) -> Vec; + fn get_hidden_providers(&self) -> Vec; fn hide_provider(&self, name: &str); @@ -106,7 +107,7 @@ impl> DeviceProviderExt for O { } } - fn get_hidden_providers(&self) -> Vec { + fn get_hidden_providers(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_device_provider_get_hidden_providers(self.to_glib_none().0)) } @@ -156,11 +157,11 @@ impl> DeviceProviderExt for O { unsafe extern "C" fn provider_hidden_trampoline

(this: *mut ffi::GstDeviceProvider, object: *mut libc::c_char, f: glib_ffi::gpointer) where P: IsA { let f: &&(Fn(&P, &str) + Send + Sync + 'static) = transmute(f); - f(&DeviceProvider::from_glib_borrow(this).downcast_unchecked(), &String::from_glib_none(object)) + f(&DeviceProvider::from_glib_borrow(this).downcast_unchecked(), &GString::from_glib_borrow(object)) } unsafe extern "C" fn provider_unhidden_trampoline

(this: *mut ffi::GstDeviceProvider, object: *mut libc::c_char, f: glib_ffi::gpointer) where P: IsA { let f: &&(Fn(&P, &str) + Send + Sync + 'static) = transmute(f); - f(&DeviceProvider::from_glib_borrow(this).downcast_unchecked(), &String::from_glib_none(object)) + f(&DeviceProvider::from_glib_borrow(this).downcast_unchecked(), &GString::from_glib_borrow(object)) } diff --git a/gstreamer/src/auto/device_provider_factory.rs b/gstreamer/src/auto/device_provider_factory.rs index 326edd159..2c8cbd72b 100644 --- a/gstreamer/src/auto/device_provider_factory.rs +++ b/gstreamer/src/auto/device_provider_factory.rs @@ -8,6 +8,7 @@ use PluginFeature; use Rank; use ffi; use glib; +use glib::GString; use glib::translate::*; glib_wrapper! { @@ -31,13 +32,13 @@ impl DeviceProviderFactory { } } - pub fn get_metadata(&self, key: &str) -> Option { + pub fn get_metadata(&self, key: &str) -> Option { unsafe { from_glib_none(ffi::gst_device_provider_factory_get_metadata(self.to_glib_none().0, key.to_glib_none().0)) } } - pub fn get_metadata_keys(&self) -> Vec { + pub fn get_metadata_keys(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_device_provider_factory_get_metadata_keys(self.to_glib_none().0)) } diff --git a/gstreamer/src/auto/element_factory.rs b/gstreamer/src/auto/element_factory.rs index 60f70ba27..14b51c459 100644 --- a/gstreamer/src/auto/element_factory.rs +++ b/gstreamer/src/auto/element_factory.rs @@ -13,6 +13,7 @@ use StaticPadTemplate; use URIType; use ffi; use glib; +use glib::GString; use glib::translate::*; glib_wrapper! { @@ -62,13 +63,13 @@ impl ElementFactory { } } - pub fn get_metadata(&self, key: &str) -> Option { + pub fn get_metadata(&self, key: &str) -> Option { unsafe { from_glib_none(ffi::gst_element_factory_get_metadata(self.to_glib_none().0, key.to_glib_none().0)) } } - pub fn get_metadata_keys(&self) -> Vec { + pub fn get_metadata_keys(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_element_factory_get_metadata_keys(self.to_glib_none().0)) } @@ -86,7 +87,7 @@ impl ElementFactory { } } - pub fn get_uri_protocols(&self) -> Vec { + pub fn get_uri_protocols(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_element_factory_get_uri_protocols(self.to_glib_none().0)) } diff --git a/gstreamer/src/auto/functions.rs b/gstreamer/src/auto/functions.rs index 0ff88a412..02278b00f 100644 --- a/gstreamer/src/auto/functions.rs +++ b/gstreamer/src/auto/functions.rs @@ -11,6 +11,7 @@ use Error; #[cfg(any(feature = "v1_12", feature = "dox"))] use StackTraceFlags; use ffi; +use glib::GString; use glib::object::IsA; use glib::translate::*; use std; @@ -26,7 +27,7 @@ pub fn debug_add_ring_buffer_logger(max_size_per_thread: u32, thread_timeout: u3 } } -pub fn debug_bin_to_dot_data>(bin: &P, details: DebugGraphDetails) -> String { +pub fn debug_bin_to_dot_data>(bin: &P, details: DebugGraphDetails) -> GString { skip_assert_initialized!(); unsafe { from_glib_full(ffi::gst_debug_bin_to_dot_data(bin.to_glib_none().0, details.to_glib())) @@ -55,7 +56,7 @@ pub fn debug_get_default_threshold() -> DebugLevel { } #[cfg(any(feature = "v1_12", feature = "dox"))] -pub fn debug_get_stack_trace(flags: StackTraceFlags) -> Option { +pub fn debug_get_stack_trace(flags: StackTraceFlags) -> Option { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_debug_get_stack_trace(flags.to_glib())) @@ -92,7 +93,7 @@ pub fn debug_remove_ring_buffer_logger() { } #[cfg(any(feature = "v1_14", feature = "dox"))] -pub fn debug_ring_buffer_logger_get_logs() -> Vec { +pub fn debug_ring_buffer_logger_get_logs() -> Vec { assert_initialized_main_thread!(); unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_debug_ring_buffer_logger_get_logs()) @@ -142,7 +143,7 @@ pub fn debug_unset_threshold_for_name(name: &str) { } #[cfg(any(feature = "v1_14", feature = "dox"))] -pub fn get_main_executable_path() -> Option { +pub fn get_main_executable_path() -> Option { assert_initialized_main_thread!(); unsafe { from_glib_none(ffi::gst_get_main_executable_path()) @@ -202,7 +203,7 @@ pub fn version() -> (u32, u32, u32, u32) { } } -pub fn version_string() -> String { +pub fn version_string() -> GString { assert_initialized_main_thread!(); unsafe { from_glib_full(ffi::gst_version_string()) diff --git a/gstreamer/src/auto/object.rs b/gstreamer/src/auto/object.rs index b30cfd808..a136e2e3f 100644 --- a/gstreamer/src/auto/object.rs +++ b/gstreamer/src/auto/object.rs @@ -6,6 +6,7 @@ use ClockTime; use Error; use ffi; use glib; +use glib::GString; use glib::object::Downcast; use glib::object::IsA; use glib::signal::SignalHandlerId; @@ -58,11 +59,11 @@ pub trait GstObjectExt: 'static { //fn get_g_value_array(&self, property_name: &str, timestamp: ClockTime, interval: ClockTime, values: /*Ignored*/&[&glib::Value]) -> bool; - fn get_name(&self) -> String; + fn get_name(&self) -> GString; fn get_parent(&self) -> Option; - fn get_path_string(&self) -> String; + fn get_path_string(&self) -> GString; //fn get_value(&self, property_name: &str, timestamp: ClockTime) -> /*Ignored*/Option; @@ -128,7 +129,7 @@ impl> GstObjectExt for O { // unsafe { TODO: call ffi::gst_object_get_g_value_array() } //} - fn get_name(&self) -> String { + fn get_name(&self) -> GString { unsafe { from_glib_full(ffi::gst_object_get_name(self.to_glib_none().0)) } @@ -140,7 +141,7 @@ impl> GstObjectExt for O { } } - fn get_path_string(&self) -> String { + fn get_path_string(&self) -> GString { unsafe { from_glib_full(ffi::gst_object_get_path_string(self.to_glib_none().0)) } diff --git a/gstreamer/src/auto/pad.rs b/gstreamer/src/auto/pad.rs index d4da3ab55..b1f47d879 100644 --- a/gstreamer/src/auto/pad.rs +++ b/gstreamer/src/auto/pad.rs @@ -20,6 +20,7 @@ use Stream; use TaskState; use ffi; use glib; +use glib::GString; use glib::StaticType; use glib::Value; use glib::object::Downcast; @@ -72,11 +73,11 @@ pub trait PadExt: 'static { fn check_reconfigure(&self) -> bool; - fn create_stream_id<'a, P: IsA, Q: Into>>(&self, parent: &P, stream_id: Q) -> Option; + fn create_stream_id<'a, P: IsA, Q: Into>>(&self, parent: &P, stream_id: Q) -> Option; - //fn create_stream_id_printf<'a, P: IsA, Q: Into>>(&self, parent: &P, stream_id: Q, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> Option; + //fn create_stream_id_printf<'a, P: IsA, Q: Into>>(&self, parent: &P, stream_id: Q, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> Option; - //fn create_stream_id_printf_valist<'a, P: IsA, Q: Into>>(&self, parent: &P, stream_id: Q, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported) -> Option; + //fn create_stream_id_printf_valist<'a, P: IsA, Q: Into>>(&self, parent: &P, stream_id: Q, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported) -> Option; //fn forward>>(&self, forward: /*Unknown conversion*//*Unimplemented*/PadForwardFunction, user_data: P) -> bool; @@ -105,7 +106,7 @@ pub trait PadExt: 'static { #[cfg(any(feature = "v1_10", feature = "dox"))] fn get_stream(&self) -> Option; - fn get_stream_id(&self) -> Option; + fn get_stream_id(&self) -> Option; #[cfg(any(feature = "v1_12", feature = "dox"))] fn get_task_state(&self) -> TaskState; @@ -228,7 +229,7 @@ impl> PadExt for O { } } - fn create_stream_id<'a, P: IsA, Q: Into>>(&self, parent: &P, stream_id: Q) -> Option { + fn create_stream_id<'a, P: IsA, Q: Into>>(&self, parent: &P, stream_id: Q) -> Option { let stream_id = stream_id.into(); let stream_id = stream_id.to_glib_none(); unsafe { @@ -236,11 +237,11 @@ impl> PadExt for O { } } - //fn create_stream_id_printf<'a, P: IsA, Q: Into>>(&self, parent: &P, stream_id: Q, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> Option { + //fn create_stream_id_printf<'a, P: IsA, Q: Into>>(&self, parent: &P, stream_id: Q, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> Option { // unsafe { TODO: call ffi::gst_pad_create_stream_id_printf() } //} - //fn create_stream_id_printf_valist<'a, P: IsA, Q: Into>>(&self, parent: &P, stream_id: Q, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported) -> Option { + //fn create_stream_id_printf_valist<'a, P: IsA, Q: Into>>(&self, parent: &P, stream_id: Q, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported) -> Option { // unsafe { TODO: call ffi::gst_pad_create_stream_id_printf_valist() } //} @@ -319,7 +320,7 @@ impl> PadExt for O { } } - fn get_stream_id(&self) -> Option { + fn get_stream_id(&self) -> Option { unsafe { from_glib_full(ffi::gst_pad_get_stream_id(self.to_glib_none().0)) } diff --git a/gstreamer/src/auto/pad_template.rs b/gstreamer/src/auto/pad_template.rs index 576d32f19..7b3025065 100644 --- a/gstreamer/src/auto/pad_template.rs +++ b/gstreamer/src/auto/pad_template.rs @@ -10,6 +10,7 @@ use PadPresence; use ffi; #[cfg(any(feature = "v1_14", feature = "dox"))] use glib; +use glib::GString; use glib::StaticType; use glib::Value; use glib::object::IsA; @@ -74,9 +75,9 @@ impl PadTemplate { } } - pub fn get_property_name_template(&self) -> Option { + pub fn get_property_name_template(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, b"name-template\0".as_ptr() as *const _, value.to_glib_none_mut().0); value.get() } diff --git a/gstreamer/src/auto/plugin.rs b/gstreamer/src/auto/plugin.rs index 137aea7c1..f0e31c2f2 100644 --- a/gstreamer/src/auto/plugin.rs +++ b/gstreamer/src/auto/plugin.rs @@ -6,6 +6,7 @@ use Error; use Object; use PluginDependencyFlags; use ffi; +use glib::GString; use glib::translate::*; use std; use std::ptr; @@ -37,7 +38,7 @@ impl Plugin { } } - pub fn get_description(&self) -> String { + pub fn get_description(&self) -> GString { unsafe { from_glib_none(ffi::gst_plugin_get_description(self.to_glib_none().0)) } @@ -49,37 +50,37 @@ impl Plugin { } } - pub fn get_license(&self) -> String { + pub fn get_license(&self) -> GString { unsafe { from_glib_none(ffi::gst_plugin_get_license(self.to_glib_none().0)) } } - pub fn get_origin(&self) -> String { + pub fn get_origin(&self) -> GString { unsafe { from_glib_none(ffi::gst_plugin_get_origin(self.to_glib_none().0)) } } - pub fn get_package(&self) -> String { + pub fn get_package(&self) -> GString { unsafe { from_glib_none(ffi::gst_plugin_get_package(self.to_glib_none().0)) } } - pub fn get_release_date_string(&self) -> Option { + pub fn get_release_date_string(&self) -> Option { unsafe { from_glib_none(ffi::gst_plugin_get_release_date_string(self.to_glib_none().0)) } } - pub fn get_source(&self) -> String { + pub fn get_source(&self) -> GString { unsafe { from_glib_none(ffi::gst_plugin_get_source(self.to_glib_none().0)) } } - pub fn get_version(&self) -> String { + pub fn get_version(&self) -> GString { unsafe { from_glib_none(ffi::gst_plugin_get_version(self.to_glib_none().0)) } diff --git a/gstreamer/src/auto/plugin_feature.rs b/gstreamer/src/auto/plugin_feature.rs index 4b49daf28..ba2718e28 100644 --- a/gstreamer/src/auto/plugin_feature.rs +++ b/gstreamer/src/auto/plugin_feature.rs @@ -5,6 +5,7 @@ use Object; use Plugin; use ffi; +use glib::GString; use glib::object::IsA; use glib::translate::*; @@ -24,7 +25,7 @@ pub trait PluginFeatureExt: 'static { fn get_plugin(&self) -> Option; - fn get_plugin_name(&self) -> Option; + fn get_plugin_name(&self) -> Option; fn get_rank(&self) -> u32; @@ -46,7 +47,7 @@ impl> PluginFeatureExt for O { } } - fn get_plugin_name(&self) -> Option { + fn get_plugin_name(&self) -> Option { unsafe { from_glib_none(ffi::gst_plugin_feature_get_plugin_name(self.to_glib_none().0)) } diff --git a/gstreamer/src/auto/preset.rs b/gstreamer/src/auto/preset.rs index 4fb645590..902fad0a2 100644 --- a/gstreamer/src/auto/preset.rs +++ b/gstreamer/src/auto/preset.rs @@ -4,6 +4,7 @@ use ffi; use glib; +use glib::GString; use glib::object::IsA; use glib::translate::*; use std; @@ -39,11 +40,11 @@ unsafe impl Sync for Preset {} pub trait PresetExt: 'static { fn delete_preset(&self, name: &str) -> Result<(), glib::error::BoolError>; - fn get_meta(&self, name: &str, tag: &str) -> Option; + fn get_meta(&self, name: &str, tag: &str) -> Option; - fn get_preset_names(&self) -> Vec; + fn get_preset_names(&self) -> Vec; - fn get_property_names(&self) -> Vec; + fn get_property_names(&self) -> Vec; fn is_editable(&self) -> bool; @@ -63,7 +64,7 @@ impl> PresetExt for O { } } - fn get_meta(&self, name: &str, tag: &str) -> Option { + fn get_meta(&self, name: &str, tag: &str) -> Option { unsafe { let mut value = ptr::null_mut(); let ret = from_glib(ffi::gst_preset_get_meta(self.to_glib_none().0, name.to_glib_none().0, tag.to_glib_none().0, &mut value)); @@ -71,13 +72,13 @@ impl> PresetExt for O { } } - fn get_preset_names(&self) -> Vec { + fn get_preset_names(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_preset_get_preset_names(self.to_glib_none().0)) } } - fn get_property_names(&self) -> Vec { + fn get_property_names(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_full(ffi::gst_preset_get_property_names(self.to_glib_none().0)) } diff --git a/gstreamer/src/auto/stream.rs b/gstreamer/src/auto/stream.rs index 5693b1fef..f61bb014b 100644 --- a/gstreamer/src/auto/stream.rs +++ b/gstreamer/src/auto/stream.rs @@ -8,6 +8,7 @@ use StreamFlags; use StreamType; use TagList; use ffi; +use glib::GString; use glib::StaticType; use glib::Value; use glib::signal::SignalHandlerId; @@ -42,7 +43,7 @@ impl Stream { } #[cfg(any(feature = "v1_10", feature = "dox"))] - pub fn get_stream_id(&self) -> Option { + pub fn get_stream_id(&self) -> Option { unsafe { from_glib_none(ffi::gst_stream_get_stream_id(self.to_glib_none().0)) } @@ -122,9 +123,9 @@ impl Stream { } } - pub fn get_property_stream_id(&self) -> Option { + pub fn get_property_stream_id(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, b"stream-id\0".as_ptr() as *const _, value.to_glib_none_mut().0); value.get() } diff --git a/gstreamer/src/auto/stream_collection.rs b/gstreamer/src/auto/stream_collection.rs index b8bfc09ef..5aa87b6d4 100644 --- a/gstreamer/src/auto/stream_collection.rs +++ b/gstreamer/src/auto/stream_collection.rs @@ -6,6 +6,7 @@ use Object; #[cfg(any(feature = "v1_10", feature = "dox"))] use Stream; use ffi; +use glib::GString; use glib::StaticType; use glib::Value; use glib::signal::SignalHandlerId; @@ -47,15 +48,15 @@ impl StreamCollection { } #[cfg(any(feature = "v1_10", feature = "dox"))] - pub fn get_upstream_id(&self) -> Option { + pub fn get_upstream_id(&self) -> Option { unsafe { from_glib_none(ffi::gst_stream_collection_get_upstream_id(self.to_glib_none().0)) } } - pub fn get_property_upstream_id(&self) -> Option { + pub fn get_property_upstream_id(&self) -> Option { unsafe { - let mut value = Value::from_type(::static_type()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, b"upstream-id\0".as_ptr() as *const _, value.to_glib_none_mut().0); value.get() } diff --git a/gstreamer/src/auto/type_find_factory.rs b/gstreamer/src/auto/type_find_factory.rs index c2df06d41..85ed397c1 100644 --- a/gstreamer/src/auto/type_find_factory.rs +++ b/gstreamer/src/auto/type_find_factory.rs @@ -6,6 +6,7 @@ use Caps; use Object; use PluginFeature; use ffi; +use glib::GString; use glib::translate::*; glib_wrapper! { @@ -27,7 +28,7 @@ impl TypeFindFactory { } } - pub fn get_extensions(&self) -> Vec { + pub fn get_extensions(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_type_find_factory_get_extensions(self.to_glib_none().0)) } diff --git a/gstreamer/src/auto/uri_handler.rs b/gstreamer/src/auto/uri_handler.rs index 4e49d71f2..9fad626e7 100644 --- a/gstreamer/src/auto/uri_handler.rs +++ b/gstreamer/src/auto/uri_handler.rs @@ -5,6 +5,7 @@ use Error; use URIType; use ffi; +use glib::GString; use glib::object::IsA; use glib::translate::*; use std::ptr; @@ -21,9 +22,9 @@ unsafe impl Send for URIHandler {} unsafe impl Sync for URIHandler {} pub trait URIHandlerExt: 'static { - fn get_protocols(&self) -> Vec; + fn get_protocols(&self) -> Vec; - fn get_uri(&self) -> Option; + fn get_uri(&self) -> Option; fn get_uri_type(&self) -> URIType; @@ -31,13 +32,13 @@ pub trait URIHandlerExt: 'static { } impl> URIHandlerExt for O { - fn get_protocols(&self) -> Vec { + fn get_protocols(&self) -> Vec { unsafe { FromGlibPtrContainer::from_glib_none(ffi::gst_uri_handler_get_protocols(self.to_glib_none().0)) } } - fn get_uri(&self) -> Option { + fn get_uri(&self) -> Option { unsafe { from_glib_full(ffi::gst_uri_handler_get_uri(self.to_glib_none().0)) } diff --git a/gstreamer/src/auto/versions.txt b/gstreamer/src/auto/versions.txt index f37f40598..c6de1a3f8 100644 --- a/gstreamer/src/auto/versions.txt +++ b/gstreamer/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 811e711) +Generated by gir (https://github.com/gtk-rs/gir @ c5498ac) from gir-files (https://github.com/gtk-rs/gir-files @ ???) diff --git a/gstreamer/src/bin.rs b/gstreamer/src/bin.rs index 01225a901..7170c0047 100644 --- a/gstreamer/src/bin.rs +++ b/gstreamer/src/bin.rs @@ -11,7 +11,7 @@ use Element; use glib; use glib::translate::{from_glib, from_glib_full, FromGlibPtrContainer, ToGlib, ToGlibPtr}; -use glib::{IsA, IsClassFor}; +use glib::{GString, IsA, IsClassFor}; use ffi; @@ -30,7 +30,7 @@ pub trait GstBinExtManual: 'static { fn iterate_sources(&self) -> ::Iterator; fn get_children(&self) -> Vec; - fn debug_to_dot_data(&self, details: ::DebugGraphDetails) -> String; + fn debug_to_dot_data(&self, details: ::DebugGraphDetails) -> GString; fn debug_to_dot_file>(&self, details: ::DebugGraphDetails, file_name: Q); fn debug_to_dot_file_with_ts>( &self, @@ -108,7 +108,7 @@ impl> GstBinExtManual for O { } } - fn debug_to_dot_data(&self, details: ::DebugGraphDetails) -> String { + fn debug_to_dot_data(&self, details: ::DebugGraphDetails) -> GString { ::debug_bin_to_dot_data(self, details) } @@ -168,7 +168,7 @@ mod tests { .get_children() .iter() .map(|c| c.get_name()) - .collect::>(); + .collect::>(); child_names.sort(); assert_eq!( child_names, diff --git a/gstreamer/src/date_time.rs b/gstreamer/src/date_time.rs index 577aab7a2..dc9b53c62 100644 --- a/gstreamer/src/date_time.rs +++ b/gstreamer/src/date_time.rs @@ -13,7 +13,7 @@ impl fmt::Display for DateTime { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { f.write_str( self.to_iso8601_string() - .unwrap_or_else(|| String::from("None")) + .unwrap_or_else(|| "None".into()) .as_str(), ) } diff --git a/gstreamer/src/element.rs b/gstreamer/src/element.rs index 051df6d60..74e419aa3 100644 --- a/gstreamer/src/element.rs +++ b/gstreamer/src/element.rs @@ -1161,6 +1161,7 @@ macro_rules! gst_element_info( #[cfg(test)] mod tests { use super::*; + use glib::GString; use prelude::*; #[cfg(feature = "v1_10")] use std::sync::mpsc::channel; @@ -1175,7 +1176,7 @@ mod tests { .get_pads() .iter() .map(|p| p.get_name()) - .collect::>(); + .collect::>(); pad_names.sort(); assert_eq!(pad_names, vec![String::from("sink"), String::from("src")]); @@ -1183,7 +1184,7 @@ mod tests { .get_sink_pads() .iter() .map(|p| p.get_name()) - .collect::>(); + .collect::>(); pad_names.sort(); assert_eq!(pad_names, vec![String::from("sink")]); @@ -1191,7 +1192,7 @@ mod tests { .get_src_pads() .iter() .map(|p| p.get_name()) - .collect::>(); + .collect::>(); pad_names.sort(); assert_eq!(pad_names, vec![String::from("src")]); }