Commit 8a2e78e5 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵
Browse files

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.
parent b198ee21
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
use glib::StaticType;
use glib::Value;
use glib::signal::SignalHandlerId;
use glib::signal::connect;
......@@ -144,11 +145,12 @@ impl AppSink {
}
pub fn get_property_buffer_list(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <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);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn set_property_buffer_list(&self, buffer_list: bool) {
......@@ -158,11 +160,12 @@ impl AppSink {
}
pub fn get_property_eos(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <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);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn connect_eos<F: Fn(&AppSink) + Send + Sync + 'static>(&self, f: F) -> SignalHandlerId {
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use AppStreamType;
use ffi;
use glib::StaticType;
use glib::Value;
use glib::signal::SignalHandlerId;
use glib::signal::connect;
......@@ -147,11 +148,12 @@ impl AppSrc {
}
pub fn get_property_block(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <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);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn set_property_block(&self, block: bool) {
......@@ -161,19 +163,21 @@ impl AppSrc {
}
pub fn get_property_current_level_bytes(&self) -> u64 {
let mut value = Value::from(&0u64);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <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);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn get_property_duration(&self) -> u64 {
let mut value = Value::from(&0u64);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <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);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn set_property_duration(&self, duration: u64) {
......@@ -183,26 +187,27 @@ impl AppSrc {
}
pub fn get_property_format(&self) -> gst::Format {
let mut value = Value::from(&0);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <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);
from_glib(transmute(value.get::<i32>().unwrap()))
value.get().unwrap()
}
}
pub fn set_property_format(&self, format: gst::Format) {
let format = format.to_glib() as i32;
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0, "format".to_glib_none().0, Value::from(&format).to_glib_none().0);
}
}
pub fn get_property_is_live(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <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);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn set_property_is_live(&self, is_live: bool) {
......@@ -212,11 +217,12 @@ impl AppSrc {
}
pub fn get_property_max_latency(&self) -> i64 {
let mut value = Value::from(&0i64);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <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);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn set_property_max_latency(&self, max_latency: i64) {
......@@ -226,11 +232,12 @@ impl AppSrc {
}
pub fn get_property_min_latency(&self) -> i64 {
let mut value = Value::from(&0i64);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <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);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn set_property_min_latency(&self, min_latency: i64) {
......@@ -240,11 +247,12 @@ impl AppSrc {
}
pub fn get_property_min_percent(&self) -> u32 {
let mut value = Value::from(&0u32);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <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);
value.get().unwrap()
}
value.get().unwrap()
}
pub fn set_property_min_percent(&self, min_percent: u32) {
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
mod app_sink;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
mod stream_volume;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use StreamVolumeFormat;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
use glib;
use glib::StaticType;
use glib::Value;
use glib::object::Downcast;
use glib::object::IsA;
......@@ -313,11 +314,12 @@ impl<O: IsA<BaseSink> + IsA<glib::object::Object>> BaseSinkExt for O {
}
fn get_property_async(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <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);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_async(&self, async: bool) {
......@@ -327,11 +329,12 @@ impl<O: IsA<BaseSink> + IsA<glib::object::Object>> BaseSinkExt for O {
}
fn get_property_enable_last_sample(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <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);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_enable_last_sample(&self, enable_last_sample: bool) {
......@@ -341,11 +344,12 @@ impl<O: IsA<BaseSink> + IsA<glib::object::Object>> BaseSinkExt for O {
}
fn get_property_qos(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <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);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_qos(&self, qos: bool) {
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
use glib;
use glib::StaticType;
use glib::Value;
use glib::object::Downcast;
use glib::object::IsA;
......@@ -204,11 +205,12 @@ impl<O: IsA<BaseSrc> + IsA<glib::object::Object>> BaseSrcExt for O {
}
fn get_property_num_buffers(&self) -> i32 {
let mut value = Value::from(&0);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <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);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_num_buffers(&self, num_buffers: i32) {
......@@ -218,11 +220,12 @@ impl<O: IsA<BaseSrc> + IsA<glib::object::Object>> BaseSrcExt for O {
}
fn get_property_typefind(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <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);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_typefind(&self, typefind: bool) {
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
use glib;
use glib::StaticType;
use glib::Value;
use glib::object::Downcast;
use glib::object::IsA;
......@@ -150,11 +151,12 @@ impl<O: IsA<BaseTransform> + IsA<glib::object::Object>> BaseTransformExt for O {
}
fn get_property_qos(&self) -> bool {
let mut value = Value::from(&false);
unsafe {
let mut value = Value::uninitialized();
gobject_ffi::g_value_init(value.to_glib_none_mut().0, <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);
value.get().unwrap()
}
value.get().unwrap()
}
fn set_property_qos(&self, qos: bool) {
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
mod adapter;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use BaseSrc;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
use ffi;
......
// This file was generated by gir (0409d73) from gir-files (???)
// This file was generated by gir (d50d839) from gir-files (???)
// DO NOT EDIT
mod player;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment