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.
This commit is contained in:
Sebastian Dröge 2017-11-27 19:16:34 +02:00
parent b198ee21da
commit 8a2e78e586
65 changed files with 211 additions and 158 deletions

View file

@ -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 // DO NOT EDIT
use ffi; use ffi;
use glib::StaticType;
use glib::Value; use glib::Value;
use glib::signal::SignalHandlerId; use glib::signal::SignalHandlerId;
use glib::signal::connect; use glib::signal::connect;
@ -144,12 +145,13 @@ impl AppSink {
} }
pub fn get_property_buffer_list(&self) -> bool { pub fn get_property_buffer_list(&self) -> bool {
let mut value = Value::from(&false);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::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); 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) { pub fn set_property_buffer_list(&self, buffer_list: bool) {
unsafe { unsafe {
@ -158,12 +160,13 @@ impl AppSink {
} }
pub fn get_property_eos(&self) -> bool { pub fn get_property_eos(&self) -> bool {
let mut value = Value::from(&false);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::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); 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<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId { pub fn connect_eos<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe { unsafe {

View file

@ -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 // DO NOT EDIT
use AppStreamType; use AppStreamType;
use ffi; use ffi;
use glib::StaticType;
use glib::Value; use glib::Value;
use glib::signal::SignalHandlerId; use glib::signal::SignalHandlerId;
use glib::signal::connect; use glib::signal::connect;
@ -147,12 +148,13 @@ impl AppSrc {
} }
pub fn get_property_block(&self) -> bool { pub fn get_property_block(&self) -> bool {
let mut value = Value::from(&false);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::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); 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) { pub fn set_property_block(&self, block: bool) {
unsafe { unsafe {
@ -161,20 +163,22 @@ impl AppSrc {
} }
pub fn get_property_current_level_bytes(&self) -> u64 { pub fn get_property_current_level_bytes(&self) -> u64 {
let mut value = Value::from(&0u64);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <u64 as StaticType>::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); 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 { pub fn get_property_duration(&self) -> u64 {
let mut value = Value::from(&0u64);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <u64 as StaticType>::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); 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) { pub fn set_property_duration(&self, duration: u64) {
unsafe { unsafe {
@ -183,27 +187,28 @@ impl AppSrc {
} }
pub fn get_property_format(&self) -> gst::Format { pub fn get_property_format(&self) -> gst::Format {
let mut value = Value::from(&0);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <gst::Format as StaticType>::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); 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::<i32>().unwrap())) value.get().unwrap()
} }
} }
pub fn set_property_format(&self, format: gst::Format) { pub fn set_property_format(&self, format: gst::Format) {
let format = format.to_glib() as i32;
unsafe { unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0, "format".to_glib_none().0, Value::from(&format).to_glib_none().0); 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 { pub fn get_property_is_live(&self) -> bool {
let mut value = Value::from(&false);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::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); 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) { pub fn set_property_is_live(&self, is_live: bool) {
unsafe { unsafe {
@ -212,12 +217,13 @@ impl AppSrc {
} }
pub fn get_property_max_latency(&self) -> i64 { pub fn get_property_max_latency(&self) -> i64 {
let mut value = Value::from(&0i64);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <i64 as StaticType>::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); 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) { pub fn set_property_max_latency(&self, max_latency: i64) {
unsafe { unsafe {
@ -226,12 +232,13 @@ impl AppSrc {
} }
pub fn get_property_min_latency(&self) -> i64 { pub fn get_property_min_latency(&self) -> i64 {
let mut value = Value::from(&0i64);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <i64 as StaticType>::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); 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) { pub fn set_property_min_latency(&self, min_latency: i64) {
unsafe { unsafe {
@ -240,12 +247,13 @@ impl AppSrc {
} }
pub fn get_property_min_percent(&self) -> u32 { pub fn get_property_min_percent(&self) -> u32 {
let mut value = Value::from(&0u32);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <u32 as StaticType>::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); 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) { pub fn set_property_min_percent(&self, min_percent: u32) {
unsafe { unsafe {

View file

@ -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 // DO NOT EDIT
use ffi; use ffi;

View file

@ -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 // DO NOT EDIT
use ffi; use ffi;

View file

@ -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 // DO NOT EDIT
mod app_sink; mod app_sink;

View file

@ -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 // DO NOT EDIT
use ffi; use ffi;

View file

@ -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 // DO NOT EDIT
use ffi; use ffi;

View file

@ -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 // DO NOT EDIT
mod stream_volume; mod stream_volume;

View file

@ -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 // DO NOT EDIT
use StreamVolumeFormat; use StreamVolumeFormat;

View file

@ -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 // DO NOT EDIT
use ffi; use ffi;

View file

@ -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 // DO NOT EDIT
use ffi; use ffi;
use glib; use glib;
use glib::StaticType;
use glib::Value; use glib::Value;
use glib::object::Downcast; use glib::object::Downcast;
use glib::object::IsA; use glib::object::IsA;
@ -313,12 +314,13 @@ impl<O: IsA<BaseSink> + IsA<glib::object::Object>> BaseSinkExt for O {
} }
fn get_property_async(&self) -> bool { fn get_property_async(&self) -> bool {
let mut value = Value::from(&false);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::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); 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) { fn set_property_async(&self, async: bool) {
unsafe { unsafe {
@ -327,12 +329,13 @@ impl<O: IsA<BaseSink> + IsA<glib::object::Object>> BaseSinkExt for O {
} }
fn get_property_enable_last_sample(&self) -> bool { fn get_property_enable_last_sample(&self) -> bool {
let mut value = Value::from(&false);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::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); 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) { fn set_property_enable_last_sample(&self, enable_last_sample: bool) {
unsafe { unsafe {
@ -341,12 +344,13 @@ impl<O: IsA<BaseSink> + IsA<glib::object::Object>> BaseSinkExt for O {
} }
fn get_property_qos(&self) -> bool { fn get_property_qos(&self) -> bool {
let mut value = Value::from(&false);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::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); 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) { fn set_property_qos(&self, qos: bool) {
unsafe { unsafe {

View file

@ -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 // DO NOT EDIT
use ffi; use ffi;
use glib; use glib;
use glib::StaticType;
use glib::Value; use glib::Value;
use glib::object::Downcast; use glib::object::Downcast;
use glib::object::IsA; use glib::object::IsA;
@ -204,12 +205,13 @@ impl<O: IsA<BaseSrc> + IsA<glib::object::Object>> BaseSrcExt for O {
} }
fn get_property_num_buffers(&self) -> i32 { fn get_property_num_buffers(&self) -> i32 {
let mut value = Value::from(&0);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <i32 as StaticType>::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); 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) { fn set_property_num_buffers(&self, num_buffers: i32) {
unsafe { unsafe {
@ -218,12 +220,13 @@ impl<O: IsA<BaseSrc> + IsA<glib::object::Object>> BaseSrcExt for O {
} }
fn get_property_typefind(&self) -> bool { fn get_property_typefind(&self) -> bool {
let mut value = Value::from(&false);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::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); 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) { fn set_property_typefind(&self, typefind: bool) {
unsafe { unsafe {

View file

@ -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 // DO NOT EDIT
use ffi; use ffi;
use glib; use glib;
use glib::StaticType;
use glib::Value; use glib::Value;
use glib::object::Downcast; use glib::object::Downcast;
use glib::object::IsA; use glib::object::IsA;
@ -150,12 +151,13 @@ impl<O: IsA<BaseTransform> + IsA<glib::object::Object>> BaseTransformExt for O {
} }
fn get_property_qos(&self) -> bool { fn get_property_qos(&self) -> bool {
let mut value = Value::from(&false);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::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); 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) { fn set_property_qos(&self, qos: bool) {
unsafe { unsafe {

View file

@ -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 // DO NOT EDIT
use ffi; use ffi;

View file

@ -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 // DO NOT EDIT
use ffi; use ffi;

View file

@ -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 // DO NOT EDIT
mod adapter; mod adapter;

View file

@ -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 // DO NOT EDIT
use BaseSrc; use BaseSrc;

View file

@ -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 // DO NOT EDIT
use ffi; use ffi;

View file

@ -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 // DO NOT EDIT
use ffi; use ffi;

View file

@ -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 // DO NOT EDIT
mod player; mod player;

View file

@ -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 // DO NOT EDIT
use Error; use Error;
@ -11,6 +11,7 @@ use PlayerSubtitleInfo;
use PlayerVideoInfo; use PlayerVideoInfo;
use PlayerVisualization; use PlayerVisualization;
use ffi; use ffi;
use glib::StaticType;
use glib::Value; use glib::Value;
use glib::signal::SignalHandlerId; use glib::signal::SignalHandlerId;
use glib::signal::connect; use glib::signal::connect;
@ -280,12 +281,13 @@ impl Player {
} }
pub fn get_property_suburi(&self) -> Option<String> { pub fn get_property_suburi(&self) -> Option<String> {
let mut value = Value::from(None::<&str>);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <String as StaticType>::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); 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>) { pub fn set_property_suburi(&self, suburi: Option<&str>) {
unsafe { unsafe {
@ -294,30 +296,30 @@ impl Player {
} }
//pub fn get_property_video_multiview_flags(&self) -> /*Ignored*/gst_video::VideoMultiviewFlags { //pub fn get_property_video_multiview_flags(&self) -> /*Ignored*/gst_video::VideoMultiviewFlags {
// let mut value = Value::from(&0u32);
// unsafe { // unsafe {
// let mut value = Value::uninitialized();
// gobject_ffi::g_value_init(value.to_glib_none_mut().0, </*Unknown type*/ as StaticType>::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); // 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::<u32>().unwrap())) // value.get().unwrap()
// } // }
//} //}
//pub fn set_property_video_multiview_flags(&self, video_multiview_flags: /*Ignored*/gst_video::VideoMultiviewFlags) { //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 { // 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); // 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 { //pub fn get_property_video_multiview_mode(&self) -> /*Ignored*/gst_video::VideoMultiviewFramePacking {
// let mut value = Value::from(&0);
// unsafe { // unsafe {
// let mut value = Value::uninitialized();
// gobject_ffi::g_value_init(value.to_glib_none_mut().0, </*Unknown type*/ as StaticType>::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); // 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::<i32>().unwrap())) // value.get().unwrap()
// } // }
//} //}
//pub fn set_property_video_multiview_mode(&self, video_multiview_mode: /*Ignored*/gst_video::VideoMultiviewFramePacking) { //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 { // 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); // 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);
// } // }

View file

@ -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 // DO NOT EDIT
use PlayerStreamInfo; use PlayerStreamInfo;

View file

@ -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 // DO NOT EDIT
use PlayerSignalDispatcher; use PlayerSignalDispatcher;
use ffi; use ffi;
use glib; use glib;
use glib::StaticType;
use glib::Value; use glib::Value;
use glib::signal::SignalHandlerId; use glib::signal::SignalHandlerId;
use glib::signal::connect; use glib::signal::connect;
@ -25,12 +26,13 @@ glib_wrapper! {
impl PlayerGMainContextSignalDispatcher { impl PlayerGMainContextSignalDispatcher {
pub fn get_property_application_context(&self) -> Option<glib::MainContext> { pub fn get_property_application_context(&self) -> Option<glib::MainContext> {
let mut value = Value::from(None::<&glib::MainContext>);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <glib::MainContext as StaticType>::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); 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<F: Fn(&PlayerGMainContextSignalDispatcher) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId { pub fn connect_property_application_context_notify<F: Fn(&PlayerGMainContextSignalDispatcher) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe { unsafe {

View file

@ -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 // DO NOT EDIT
use PlayerAudioInfo; use PlayerAudioInfo;

View file

@ -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 // DO NOT EDIT
use ffi; use ffi;

View file

@ -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 // DO NOT EDIT
use ffi; use ffi;

View file

@ -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 // DO NOT EDIT
use PlayerStreamInfo; use PlayerStreamInfo;

View file

@ -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 // DO NOT EDIT
use PlayerStreamInfo; use PlayerStreamInfo;

View file

@ -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 // DO NOT EDIT
use PlayerVideoRenderer; use PlayerVideoRenderer;
use ffi; use ffi;
use glib; use glib;
use glib::StaticType;
use glib::Value; use glib::Value;
use glib::object::IsA; use glib::object::IsA;
use glib::signal::SignalHandlerId; use glib::signal::SignalHandlerId;
@ -58,12 +59,13 @@ impl PlayerVideoOverlayVideoRenderer {
//} //}
pub fn get_property_video_sink(&self) -> Option<gst::Element> { pub fn get_property_video_sink(&self) -> Option<gst::Element> {
let mut value = Value::from(None::<&gst::Element>);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <gst::Element as StaticType>::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); 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<P: IsA<gst::Element> + IsA<glib::object::Object> + glib::value::SetValueOptional>(&self, video_sink: Option<&P>) { pub fn set_property_video_sink<P: IsA<gst::Element> + IsA<glib::object::Object> + glib::value::SetValueOptional>(&self, video_sink: Option<&P>) {
unsafe { unsafe {

View file

@ -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 // DO NOT EDIT
use ffi; use ffi;

View file

@ -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 // DO NOT EDIT
use ffi; use ffi;

View file

@ -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 // DO NOT EDIT
use ffi; use ffi;

View file

@ -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 // DO NOT EDIT
use ffi; use ffi;

View file

@ -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 // DO NOT EDIT
mod video_overlay; mod video_overlay;

View file

@ -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 // DO NOT EDIT
use ffi; use ffi;

View file

@ -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 // DO NOT EDIT
#[allow(unused_imports)] #[allow(unused_imports)]

View file

@ -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 // DO NOT EDIT
use ChildProxy; use ChildProxy;
@ -10,6 +10,7 @@ use Pad;
use PadDirection; use PadDirection;
use ffi; use ffi;
use glib; use glib;
use glib::StaticType;
use glib::Value; use glib::Value;
use glib::object::Downcast; use glib::object::Downcast;
use glib::object::IsA; use glib::object::IsA;
@ -205,12 +206,13 @@ impl<O: IsA<Bin> + IsA<glib::object::Object>> BinExt for O {
} }
fn get_property_async_handling(&self) -> bool { fn get_property_async_handling(&self) -> bool {
let mut value = Value::from(&false);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::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); 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) { fn set_property_async_handling(&self, async_handling: bool) {
unsafe { unsafe {
@ -219,12 +221,13 @@ impl<O: IsA<Bin> + IsA<glib::object::Object>> BinExt for O {
} }
fn get_property_message_forward(&self) -> bool { fn get_property_message_forward(&self) -> bool {
let mut value = Value::from(&false);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::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); 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) { fn set_property_message_forward(&self, message_forward: bool) {
unsafe { unsafe {

View file

@ -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 // DO NOT EDIT
use ClockTime; use ClockTime;

View file

@ -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 // DO NOT EDIT
use ffi; use ffi;

View file

@ -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 // DO NOT EDIT
use ClockTime; use ClockTime;
use Object; use Object;
use ffi; use ffi;
use glib; use glib;
use glib::StaticType;
use glib::Value; use glib::Value;
use glib::object::Downcast; use glib::object::Downcast;
use glib::object::IsA; use glib::object::IsA;
@ -51,7 +52,7 @@ impl Clock {
// unsafe { TODO: call ffi::gst_clock_id_wait() } // unsafe { TODO: call ffi::gst_clock_id_wait() }
//} //}
//pub fn id_wait_async<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(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() } // unsafe { TODO: call ffi::gst_clock_id_wait_async() }
//} //}
} }
@ -270,12 +271,13 @@ impl<O: IsA<Clock> + IsA<glib::object::Object>> ClockExt for O {
} }
fn get_property_window_size(&self) -> i32 { fn get_property_window_size(&self) -> i32 {
let mut value = Value::from(&0);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <i32 as StaticType>::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); 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) { fn set_property_window_size(&self, window_size: i32) {
unsafe { unsafe {
@ -284,12 +286,13 @@ impl<O: IsA<Clock> + IsA<glib::object::Object>> ClockExt for O {
} }
fn get_property_window_threshold(&self) -> i32 { fn get_property_window_threshold(&self) -> i32 {
let mut value = Value::from(&0);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <i32 as StaticType>::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); 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) { fn set_property_window_threshold(&self, window_threshold: i32) {
unsafe { unsafe {

View file

@ -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 // DO NOT EDIT
use ffi; use ffi;

View file

@ -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 // DO NOT EDIT
use Caps; use Caps;
@ -7,6 +7,7 @@ use Object;
use Structure; use Structure;
use ffi; use ffi;
use glib; use glib;
use glib::StaticType;
use glib::Value; use glib::Value;
use glib::object::Downcast; use glib::object::Downcast;
use glib::object::IsA; use glib::object::IsA;
@ -119,36 +120,40 @@ impl<O: IsA<Device> + IsA<glib::object::Object>> DeviceExt for O {
} }
fn get_property_caps(&self) -> Option<Caps> { fn get_property_caps(&self) -> Option<Caps> {
let mut value = Value::from(None::<&Caps>);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <Caps as StaticType>::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); 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<String> { fn get_property_device_class(&self) -> Option<String> {
let mut value = Value::from(None::<&str>);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <String as StaticType>::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); 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<String> { fn get_property_display_name(&self) -> Option<String> {
let mut value = Value::from(None::<&str>);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <String as StaticType>::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); 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<Structure> { fn get_property_properties(&self) -> Option<Structure> {
let mut value = Value::from(None::<&Structure>);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <Structure as StaticType>::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); 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<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId { fn connect_removed<F: Fn(&Self) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
unsafe { unsafe {

View file

@ -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 // DO NOT EDIT
use Bus; use Bus;
@ -7,6 +7,7 @@ use Device;
use Object; use Object;
use ffi; use ffi;
use glib; use glib;
use glib::StaticType;
use glib::Value; use glib::Value;
use glib::object::Downcast; use glib::object::Downcast;
use glib::object::IsA; use glib::object::IsA;
@ -132,12 +133,13 @@ impl<O: IsA<DeviceMonitor> + IsA<glib::object::Object>> DeviceMonitorExt for O {
} }
fn get_property_show_all(&self) -> bool { fn get_property_show_all(&self) -> bool {
let mut value = Value::from(&false);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <bool as StaticType>::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); 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) { fn set_property_show_all(&self, show_all: bool) {
unsafe { unsafe {

View file

@ -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 // DO NOT EDIT
use Bus; use Bus;

View file

@ -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 // DO NOT EDIT
use DeviceProvider; use DeviceProvider;

View file

@ -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 // DO NOT EDIT
use Bus; use Bus;
@ -85,7 +85,7 @@ pub trait ElementExt {
fn add_pad<P: IsA<Pad>>(&self, pad: &P) -> Result<(), glib::error::BoolError>; fn add_pad<P: IsA<Pad>>(&self, pad: &P) -> Result<(), glib::error::BoolError>;
//#[cfg(any(feature = "v1_10", feature = "dox"))] //#[cfg(any(feature = "v1_10", feature = "dox"))]
//fn call_async<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&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; fn change_state(&self, transition: StateChange) -> StateChangeReturn;
@ -199,7 +199,7 @@ impl<O: IsA<Element> + IsA<glib::object::Object>> ElementExt for O {
} }
//#[cfg(any(feature = "v1_10", feature = "dox"))] //#[cfg(any(feature = "v1_10", feature = "dox"))]
//fn call_async<P: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(&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() } // unsafe { TODO: call ffi::gst_element_call_async() }
//} //}

View file

@ -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 // DO NOT EDIT
use Caps; use Caps;

View file

@ -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 // DO NOT EDIT
use ffi; use ffi;

View file

@ -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 // DO NOT EDIT
use ffi; use ffi;

View file

@ -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 // DO NOT EDIT
use Bin; use Bin;

View file

@ -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 // DO NOT EDIT
use Object; use Object;

View file

@ -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 // DO NOT EDIT
mod bin; mod bin;

View file

@ -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 // DO NOT EDIT
use ClockTime; use ClockTime;

View file

@ -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 // DO NOT EDIT
use Caps; use Caps;
@ -18,6 +18,7 @@ use Stream;
use TaskState; use TaskState;
use ffi; use ffi;
use glib; use glib;
use glib::StaticType;
use glib::Value; use glib::Value;
use glib::object::Downcast; use glib::object::Downcast;
use glib::object::IsA; use glib::object::IsA;
@ -543,20 +544,22 @@ impl<O: IsA<Pad> + IsA<glib::object::Object>> PadExt for O {
} }
fn get_property_caps(&self) -> Option<Caps> { fn get_property_caps(&self) -> Option<Caps> {
let mut value = Value::from(None::<&Caps>);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <Caps as StaticType>::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); 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<PadTemplate> { fn get_property_template(&self) -> Option<PadTemplate> {
let mut value = Value::from(None::<&PadTemplate>);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <PadTemplate as StaticType>::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); 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>) { fn set_property_template(&self, template: Option<&PadTemplate>) {
unsafe { unsafe {

View file

@ -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 // DO NOT EDIT
use Caps; use Caps;
@ -7,6 +7,7 @@ use Pad;
use PadDirection; use PadDirection;
use PadPresence; use PadPresence;
use ffi; use ffi;
use glib::StaticType;
use glib::Value; use glib::Value;
use glib::object::IsA; use glib::object::IsA;
use glib::signal::SignalHandlerId; use glib::signal::SignalHandlerId;
@ -48,26 +49,29 @@ impl PadTemplate {
} }
pub fn get_property_direction(&self) -> PadDirection { pub fn get_property_direction(&self) -> PadDirection {
let mut value = Value::from(&0);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <PadDirection as StaticType>::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); 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::<i32>().unwrap())) value.get().unwrap()
} }
} }
pub fn get_property_name_template(&self) -> Option<String> { pub fn get_property_name_template(&self) -> Option<String> {
let mut value = Value::from(None::<&str>);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <String as StaticType>::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); 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 { pub fn get_property_presence(&self) -> PadPresence {
let mut value = Value::from(&0);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <PadPresence as StaticType>::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); 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::<i32>().unwrap())) value.get().unwrap()
} }
} }

View file

@ -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 // DO NOT EDIT
use Bin; use Bin;

View file

@ -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 // DO NOT EDIT
use Error; use Error;

View file

@ -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 // DO NOT EDIT
use ffi; use ffi;

View file

@ -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 // DO NOT EDIT
use Object; use Object;

View file

@ -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 // DO NOT EDIT
use Caps; use Caps;
@ -7,6 +7,7 @@ use StreamFlags;
use StreamType; use StreamType;
use TagList; use TagList;
use ffi; use ffi;
use glib::StaticType;
use glib::Value; use glib::Value;
use glib::signal::SignalHandlerId; use glib::signal::SignalHandlerId;
use glib::signal::connect; use glib::signal::connect;
@ -107,12 +108,13 @@ impl Stream {
} }
pub fn get_property_caps(&self) -> Option<Caps> { pub fn get_property_caps(&self) -> Option<Caps> {
let mut value = Value::from(None::<&Caps>);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <Caps as StaticType>::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); 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>) { pub fn set_property_caps(&self, caps: Option<&Caps>) {
unsafe { unsafe {
@ -121,50 +123,52 @@ impl Stream {
} }
pub fn get_property_stream_flags(&self) -> StreamFlags { pub fn get_property_stream_flags(&self) -> StreamFlags {
let mut value = Value::from(&0u32);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <StreamFlags as StaticType>::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); 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::<u32>().unwrap())) value.get().unwrap()
} }
} }
pub fn set_property_stream_flags(&self, stream_flags: StreamFlags) { pub fn set_property_stream_flags(&self, stream_flags: StreamFlags) {
let stream_flags = stream_flags.to_glib().bits() as u32;
unsafe { 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); 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<String> { pub fn get_property_stream_id(&self) -> Option<String> {
let mut value = Value::from(None::<&str>);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <String as StaticType>::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); 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 { pub fn get_property_stream_type(&self) -> StreamType {
let mut value = Value::from(&0u32);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <StreamType as StaticType>::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); 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::<u32>().unwrap())) value.get().unwrap()
} }
} }
pub fn set_property_stream_type(&self, stream_type: StreamType) { pub fn set_property_stream_type(&self, stream_type: StreamType) {
let stream_type = stream_type.to_glib().bits() as u32;
unsafe { 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); 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<TagList> { pub fn get_property_tags(&self) -> Option<TagList> {
let mut value = Value::from(None::<&TagList>);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <TagList as StaticType>::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); 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>) { pub fn set_property_tags(&self, tags: Option<&TagList>) {
unsafe { unsafe {

View file

@ -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 // DO NOT EDIT
use Object; use Object;
#[cfg(any(feature = "v1_10", feature = "dox"))] #[cfg(any(feature = "v1_10", feature = "dox"))]
use Stream; use Stream;
use ffi; use ffi;
use glib::StaticType;
use glib::Value; use glib::Value;
use glib::signal::SignalHandlerId; use glib::signal::SignalHandlerId;
use glib::signal::connect; use glib::signal::connect;
@ -64,12 +65,13 @@ impl StreamCollection {
} }
pub fn get_property_upstream_id(&self) -> Option<String> { pub fn get_property_upstream_id(&self) -> Option<String> {
let mut value = Value::from(None::<&str>);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <String as StaticType>::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); 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>) { pub fn set_property_upstream_id(&self, upstream_id: Option<&str>) {
unsafe { unsafe {

View file

@ -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 // DO NOT EDIT
use Clock; use Clock;
@ -6,6 +6,7 @@ use ClockType;
use Object; use Object;
use ffi; use ffi;
use glib; use glib;
use glib::StaticType;
use glib::Value; use glib::Value;
use glib::object::Downcast; use glib::object::Downcast;
use glib::object::IsA; use glib::object::IsA;
@ -56,15 +57,15 @@ pub trait SystemClockExt {
impl<O: IsA<SystemClock> + IsA<glib::object::Object>> SystemClockExt for O { impl<O: IsA<SystemClock> + IsA<glib::object::Object>> SystemClockExt for O {
fn get_property_clock_type(&self) -> ClockType { fn get_property_clock_type(&self) -> ClockType {
let mut value = Value::from(&0);
unsafe { unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <ClockType as StaticType>::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); 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::<i32>().unwrap())) value.get().unwrap()
} }
} }
fn set_property_clock_type(&self, clock_type: ClockType) { fn set_property_clock_type(&self, clock_type: ClockType) {
let clock_type = clock_type.to_glib() as i32;
unsafe { 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); 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);
} }

View file

@ -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 // DO NOT EDIT
use Element; use Element;

View file

@ -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 // DO NOT EDIT
use Element; use Element;

View file

@ -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 // DO NOT EDIT
use Error; use Error;