Regenerate

This commit is contained in:
Sebastian Dröge 2020-12-18 00:34:53 +02:00
parent 27dc5b40ce
commit d0b0006d27
279 changed files with 564 additions and 571 deletions

View file

@ -10,7 +10,7 @@ use glib::StaticType;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct AppSink(Object<ffi::GstAppSink, ffi::GstAppSinkClass>) @extends gst_base::BaseSink, gst::Element, gst::Object, @implements gst::URIHandler;
match fn {
@ -64,7 +64,7 @@ impl AppSink {
pub fn pull_preroll(&self) -> Result<gst::Sample, glib::BoolError> {
unsafe {
Option::<_>::from_glib_full(ffi::gst_app_sink_pull_preroll(self.to_glib_none().0))
.ok_or_else(|| glib::glib_bool_error!("Failed to pull preroll sample"))
.ok_or_else(|| glib::bool_error!("Failed to pull preroll sample"))
}
}
@ -72,7 +72,7 @@ impl AppSink {
pub fn pull_sample(&self) -> Result<gst::Sample, glib::BoolError> {
unsafe {
Option::<_>::from_glib_full(ffi::gst_app_sink_pull_sample(self.to_glib_none().0))
.ok_or_else(|| glib::glib_bool_error!("Failed to pull sample"))
.ok_or_else(|| glib::bool_error!("Failed to pull sample"))
}
}

View file

@ -11,7 +11,7 @@ use glib::StaticType;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct AppSrc(Object<ffi::GstAppSrc, ffi::GstAppSrcClass>) @extends gst_base::BaseSrc, gst::Element, gst::Object, @implements gst::URIHandler;
match fn {

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
Generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
use gstreamer_app_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#include "manual.h"

View file

@ -11,7 +11,7 @@ use glib::StaticType;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct AudioBaseSink(Object<ffi::GstAudioBaseSink, ffi::GstAudioBaseSinkClass>) @extends gst_base::BaseSink, gst::Element, gst::Object;
match fn {

View file

@ -11,7 +11,7 @@ use glib::StaticType;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct AudioBaseSrc(Object<ffi::GstAudioBaseSrc, ffi::GstAudioBaseSrcClass>) @extends gst_base::BaseSrc, gst::Element, gst::Object;
match fn {

View file

@ -12,7 +12,7 @@ use std::boxed::Box as Box_;
use std::mem;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct AudioDecoder(Object<ffi::GstAudioDecoder, ffi::GstAudioDecoderClass>) @extends gst::Element, gst::Object;
match fn {
@ -136,7 +136,7 @@ impl<O: IsA<AudioDecoder>> AudioDecoderExt for O {
self.as_ref().to_glib_none().0,
size,
))
.ok_or_else(|| glib::glib_bool_error!("Failed to allocate output buffer"))
.ok_or_else(|| glib::bool_error!("Failed to allocate output buffer"))
}
}

View file

@ -11,7 +11,7 @@ use glib::translate::*;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct AudioEncoder(Object<ffi::GstAudioEncoder, ffi::GstAudioEncoderClass>) @extends gst::Element, gst::Object;
match fn {
@ -136,7 +136,7 @@ impl<O: IsA<AudioEncoder>> AudioEncoderExt for O {
self.as_ref().to_glib_none().0,
size,
))
.ok_or_else(|| glib::glib_bool_error!("Failed to allocate output buffer"))
.ok_or_else(|| glib::bool_error!("Failed to allocate output buffer"))
}
}

View file

@ -5,7 +5,7 @@
use crate::AudioBaseSink;
use glib::translate::*;
glib::glib_wrapper! {
glib::wrapper! {
pub struct AudioSink(Object<ffi::GstAudioSink, ffi::GstAudioSinkClass>) @extends AudioBaseSink, gst_base::BaseSink, gst::Element, gst::Object;
match fn {

View file

@ -5,7 +5,7 @@
use crate::AudioBaseSrc;
use glib::translate::*;
glib::glib_wrapper! {
glib::wrapper! {
pub struct AudioSrc(Object<ffi::GstAudioSrc, ffi::GstAudioSrcClass>) @extends AudioBaseSrc, gst_base::BaseSrc, gst::Element, gst::Object;
match fn {

View file

@ -6,7 +6,7 @@
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_14")))]
use glib::translate::*;
glib::glib_wrapper! {
glib::wrapper! {
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct AudioStreamAlign(Boxed<ffi::GstAudioStreamAlign>);

View file

@ -11,7 +11,7 @@ use glib::translate::*;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct StreamVolume(Interface<ffi::GstStreamVolume>);
match fn {

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
Generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
use gstreamer_audio_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#include "manual.h"

View file

@ -6,7 +6,7 @@ use glib::translate::*;
use glib::ObjectExt;
use std::mem;
glib::glib_wrapper! {
glib::wrapper! {
pub struct Adapter(Object<ffi::GstAdapter, ffi::GstAdapterClass>);
match fn {

View file

@ -17,7 +17,7 @@ use glib::StaticType;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct Aggregator(Object<ffi::GstAggregator, ffi::GstAggregatorClass>) @extends gst::Element, gst::Object;
match fn {

View file

@ -13,7 +13,7 @@ use glib::StaticType;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct AggregatorPad(Object<ffi::GstAggregatorPad, ffi::GstAggregatorPadClass>) @extends gst::Pad, gst::Object;
match fn {

View file

@ -11,7 +11,7 @@ use glib::StaticType;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct BaseParse(Object<ffi::GstBaseParse, ffi::GstBaseParseClass>) @extends gst::Element, gst::Object;
match fn {

View file

@ -11,7 +11,7 @@ use glib::StaticType;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct BaseSink(Object<ffi::GstBaseSink, ffi::GstBaseSinkClass>) @extends gst::Element, gst::Object;
match fn {

View file

@ -11,7 +11,7 @@ use glib::StaticType;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct BaseSrc(Object<ffi::GstBaseSrc, ffi::GstBaseSrcClass>) @extends gst::Element, gst::Object;
match fn {
@ -178,7 +178,7 @@ impl<O: IsA<BaseSrc>> BaseSrcExt for O {
fn set_caps(&self, caps: &gst::Caps) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::gst_base_src_set_caps(self.as_ref().to_glib_none().0, caps.to_glib_none().0),
"Failed to set caps"
)

View file

@ -11,7 +11,7 @@ use glib::StaticType;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct BaseTransform(Object<ffi::GstBaseTransform, ffi::GstBaseTransformClass>) @extends gst::Element, gst::Object;
match fn {
@ -199,7 +199,7 @@ impl<O: IsA<BaseTransform>> BaseTransformExt for O {
fn update_src_caps(&self, updated_caps: &gst::Caps) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::gst_base_transform_update_src_caps(
self.as_ref().to_glib_none().0,
updated_caps.to_glib_none().0

View file

@ -16,7 +16,7 @@ pub fn type_find_helper<P: IsA<gst::Pad>>(
src.as_ref().to_glib_none().0,
size,
))
.ok_or_else(|| glib::glib_bool_error!("Could not find type"))
.ok_or_else(|| glib::bool_error!("Could not find type"))
}
}
@ -31,7 +31,7 @@ pub fn type_find_helper_for_extension<P: IsA<gst::Object>>(
obj.map(|p| p.as_ref()).to_glib_none().0,
extension.to_glib_none().0,
))
.ok_or_else(|| glib::glib_bool_error!("Could not find type"))
.ok_or_else(|| glib::bool_error!("Could not find type"))
}
}

View file

@ -5,7 +5,7 @@
use crate::BaseSrc;
use glib::translate::*;
glib::glib_wrapper! {
glib::wrapper! {
pub struct PushSrc(Object<ffi::GstPushSrc, ffi::GstPushSrcClass>) @extends BaseSrc, gst::Element, gst::Object;
match fn {

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
Generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
use gstreamer_base_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#include "manual.h"

View file

@ -11,7 +11,7 @@ use glib::StaticType;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct TestClock(Object<ffi::GstTestClock, ffi::GstTestClockClass>) @extends gst::Clock, gst::Object;
match fn {

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
Generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
use gstreamer_check_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#include "manual.h"

View file

@ -11,7 +11,7 @@ use glib::StaticType;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct ARGBControlBinding(Object<ffi::GstARGBControlBinding, ffi::GstARGBControlBindingClass>) @extends gst::ControlBinding, gst::Object;
match fn {

View file

@ -11,7 +11,7 @@ use glib::StaticType;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct DirectControlBinding(Object<ffi::GstDirectControlBinding, ffi::GstDirectControlBindingClass>) @extends gst::ControlBinding, gst::Object;
match fn {

View file

@ -13,7 +13,7 @@ use glib::StaticType;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct InterpolationControlSource(Object<ffi::GstInterpolationControlSource, ffi::GstInterpolationControlSourceClass>) @extends TimedValueControlSource, gst::ControlSource, gst::Object;
match fn {

View file

@ -12,7 +12,7 @@ use glib::StaticType;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct LFOControlSource(Object<ffi::GstLFOControlSource, ffi::GstLFOControlSourceClass>) @extends gst::ControlSource, gst::Object;
match fn {

View file

@ -10,7 +10,7 @@ use glib::object::Cast;
use glib::object::IsA;
use glib::translate::*;
glib::glib_wrapper! {
glib::wrapper! {
pub struct ProxyControlBinding(Object<ffi::GstProxyControlBinding, ffi::GstProxyControlBindingClass>) @extends gst::ControlBinding, gst::Object;
match fn {

View file

@ -11,7 +11,7 @@ use glib::translate::*;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct TimedValueControlSource(Object<ffi::GstTimedValueControlSource, ffi::GstTimedValueControlSourceClass>) @extends gst::ControlSource, gst::Object;
match fn {

View file

@ -12,7 +12,7 @@ use glib::StaticType;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct TriggerControlSource(Object<ffi::GstTriggerControlSource, ffi::GstTriggerControlSourceClass>) @extends TimedValueControlSource, gst::ControlSource, gst::Object;
match fn {

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
Generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
use gstreamer_controller_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#include "manual.h"

View file

@ -13,7 +13,7 @@ use std::mem::transmute;
use std::pin::Pin;
use std::ptr;
glib::glib_wrapper! {
glib::wrapper! {
pub struct Asset(Object<ffi::GESAsset, ffi::GESAssetClass>);
match fn {
@ -201,7 +201,7 @@ impl<O: IsA<Asset>> AssetExt for O {
fn set_proxy<P: IsA<Asset>>(&self, proxy: Option<&P>) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_asset_set_proxy(
self.as_ref().to_glib_none().0,
proxy.map(|p| p.as_ref()).to_glib_none().0
@ -213,7 +213,7 @@ impl<O: IsA<Asset>> AssetExt for O {
fn unproxy<P: IsA<Asset>>(&self, proxy: &P) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_asset_unproxy(
self.as_ref().to_glib_none().0,
proxy.as_ref().to_glib_none().0

View file

@ -8,7 +8,7 @@ use crate::TrackElement;
use glib::object::IsA;
use glib::translate::*;
glib::glib_wrapper! {
glib::wrapper! {
pub struct BaseEffect(Object<ffi::GESBaseEffect, ffi::GESBaseEffectClass>) @extends TrackElement, TimelineElement, @implements Extractable;
match fn {

View file

@ -25,7 +25,7 @@ use std::mem::transmute;
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use std::ptr;
glib::glib_wrapper! {
glib::wrapper! {
pub struct Clip(Object<ffi::GESClip, ffi::GESClipClass>) @extends Container, TimelineElement, @implements Extractable;
match fn {
@ -184,7 +184,7 @@ impl<O: IsA<Clip>> ClipExt for O {
self.as_ref().to_glib_none().0,
asset.as_ref().to_glib_none().0,
))
.ok_or_else(|| glib::glib_bool_error!("Failed to add asset"))
.ok_or_else(|| glib::bool_error!("Failed to add asset"))
}
}
@ -381,7 +381,7 @@ impl<O: IsA<Clip>> ClipExt for O {
fn move_to_layer<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_clip_move_to_layer(
self.as_ref().to_glib_none().0,
layer.as_ref().to_glib_none().0
@ -442,7 +442,7 @@ impl<O: IsA<Clip>> ClipExt for O {
newindex: u32,
) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_clip_set_top_effect_index(
self.as_ref().to_glib_none().0,
effect.as_ref().to_glib_none().0,
@ -482,7 +482,7 @@ impl<O: IsA<Clip>> ClipExt for O {
newpriority: u32,
) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_clip_set_top_effect_priority(
self.as_ref().to_glib_none().0,
effect.as_ref().to_glib_none().0,
@ -499,7 +499,7 @@ impl<O: IsA<Clip>> ClipExt for O {
self.as_ref().to_glib_none().0,
position,
))
.ok_or_else(|| glib::glib_bool_error!("Failed to split clip"))
.ok_or_else(|| glib::bool_error!("Failed to split clip"))
}
}

View file

@ -16,7 +16,7 @@ use glib::StaticType;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct Container(Object<ffi::GESContainer, ffi::GESContainerClass>) @extends TimelineElement, @implements Extractable;
match fn {
@ -76,7 +76,7 @@ pub trait GESContainerExt: 'static {
impl<O: IsA<Container>> GESContainerExt for O {
fn add<P: IsA<TimelineElement>>(&self, child: &P) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_container_add(
self.as_ref().to_glib_none().0,
child.as_ref().to_glib_none().0
@ -95,7 +95,7 @@ impl<O: IsA<Container>> GESContainerExt for O {
position: u64,
) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_container_edit(
self.as_ref().to_glib_none().0,
layers.to_glib_none().0,
@ -120,7 +120,7 @@ impl<O: IsA<Container>> GESContainerExt for O {
fn remove<P: IsA<TimelineElement>>(&self, child: &P) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_container_remove(
self.as_ref().to_glib_none().0,
child.as_ref().to_glib_none().0

View file

@ -10,7 +10,7 @@ use glib::object::IsA;
use glib::translate::*;
use glib::StaticType;
glib::glib_wrapper! {
glib::wrapper! {
pub struct Effect(Object<ffi::GESEffect, ffi::GESEffectClass>) @extends BaseEffect, TrackElement, TimelineElement, @implements Extractable;
match fn {
@ -24,7 +24,7 @@ impl Effect {
assert_initialized_main_thread!();
unsafe {
Option::<_>::from_glib_none(ffi::ges_effect_new(bin_description.to_glib_none().0))
.ok_or_else(|| glib::glib_bool_error!("Failed to create effect from description"))
.ok_or_else(|| glib::bool_error!("Failed to create effect from description"))
}
}
}

View file

@ -6,7 +6,7 @@ use crate::Asset;
use glib::object::IsA;
use glib::translate::*;
glib::glib_wrapper! {
glib::wrapper! {
pub struct Extractable(Interface<ffi::GESExtractable>);
match fn {
@ -42,7 +42,7 @@ impl<O: IsA<Extractable>> ExtractableExt for O {
fn set_asset<P: IsA<Asset>>(&self, asset: &P) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_extractable_set_asset(
self.as_ref().to_glib_none().0,
asset.as_ref().to_glib_none().0

View file

@ -14,7 +14,7 @@ use glib::StaticType;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct Group(Object<ffi::GESGroup, ffi::GESGroupClass>) @extends Container, TimelineElement, @implements Extractable;
match fn {

View file

@ -21,7 +21,7 @@ use std::mem::transmute;
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use std::ptr;
glib::glib_wrapper! {
glib::wrapper! {
pub struct Layer(Object<ffi::GESLayer, ffi::GESLayerClass>) @implements Extractable;
match fn {
@ -155,7 +155,7 @@ impl<O: IsA<Layer>> LayerExt for O {
duration.to_glib(),
track_types.to_glib(),
))
.ok_or_else(|| glib::glib_bool_error!("Failed to add asset"))
.ok_or_else(|| glib::bool_error!("Failed to add asset"))
}
}
@ -190,7 +190,7 @@ impl<O: IsA<Layer>> LayerExt for O {
fn add_clip<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_layer_add_clip(
self.as_ref().to_glib_none().0,
clip.as_ref().to_glib_none().0
@ -273,7 +273,7 @@ impl<O: IsA<Layer>> LayerExt for O {
fn remove_clip<P: IsA<Clip>>(&self, clip: &P) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_layer_remove_clip(
self.as_ref().to_glib_none().0,
clip.as_ref().to_glib_none().0

View file

@ -14,7 +14,7 @@ use std::boxed::Box as Box_;
use std::mem::transmute;
use std::ptr;
glib::glib_wrapper! {
glib::wrapper! {
pub struct Pipeline(Object<ffi::GESPipeline, ffi::GESPipelineClass>) @extends gst::Pipeline, gst::Element, gst::Object;
match fn {
@ -200,7 +200,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
fn set_mode(&self, mode: PipelineFlags) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_pipeline_set_mode(self.as_ref().to_glib_none().0, mode.to_glib()),
"Failed to set mode"
)
@ -213,7 +213,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
profile: &P,
) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_pipeline_set_render_settings(
self.as_ref().to_glib_none().0,
output_uri.to_glib_none().0,
@ -226,7 +226,7 @@ impl<O: IsA<Pipeline>> GESPipelineExt for O {
fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_pipeline_set_timeline(
self.as_ref().to_glib_none().0,
timeline.as_ref().to_glib_full()

View file

@ -13,7 +13,7 @@ use std::boxed::Box as Box_;
use std::mem::transmute;
use std::ptr;
glib::glib_wrapper! {
glib::wrapper! {
pub struct Project(Object<ffi::GESProject, ffi::GESProjectClass>) @extends Asset;
match fn {
@ -131,7 +131,7 @@ impl<O: IsA<Project>> ProjectExt for O {
profile: &P,
) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_project_add_encoding_profile(
self.as_ref().to_glib_none().0,
profile.as_ref().to_glib_none().0
@ -235,7 +235,7 @@ impl<O: IsA<Project>> ProjectExt for O {
fn remove_asset<P: IsA<Asset>>(&self, asset: &P) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_project_remove_asset(
self.as_ref().to_glib_none().0,
asset.as_ref().to_glib_none().0

View file

@ -24,7 +24,7 @@ use std::boxed::Box as Box_;
use std::mem::transmute;
use std::ptr;
glib::glib_wrapper! {
glib::wrapper! {
pub struct Timeline(Object<ffi::GESTimeline, ffi::GESTimelineClass>) @extends gst::Element, gst::Object, @implements Extractable;
match fn {
@ -217,7 +217,7 @@ pub trait TimelineExt: 'static {
impl<O: IsA<Timeline>> TimelineExt for O {
fn add_layer<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_timeline_add_layer(
self.as_ref().to_glib_none().0,
layer.as_ref().to_glib_none().0
@ -229,7 +229,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
fn add_track<P: IsA<Track>>(&self, track: &P) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_timeline_add_track(
self.as_ref().to_glib_none().0,
track.as_ref().to_glib_full()
@ -390,7 +390,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
new_layer_priority: u32,
) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_timeline_move_layer(
self.as_ref().to_glib_none().0,
layer.as_ref().to_glib_none().0,
@ -419,7 +419,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
fn remove_layer<P: IsA<Layer>>(&self, layer: &P) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_timeline_remove_layer(
self.as_ref().to_glib_none().0,
layer.as_ref().to_glib_none().0
@ -431,7 +431,7 @@ impl<O: IsA<Timeline>> TimelineExt for O {
fn remove_track<P: IsA<Track>>(&self, track: &P) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_timeline_remove_track(
self.as_ref().to_glib_none().0,
track.as_ref().to_glib_none().0

View file

@ -29,7 +29,7 @@ use std::mem::transmute;
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use std::ptr;
glib::glib_wrapper! {
glib::wrapper! {
pub struct TimelineElement(Object<ffi::GESTimelineElement, ffi::GESTimelineElementClass>) @implements Extractable;
match fn {
@ -241,7 +241,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
self.as_ref().to_glib_none().0,
deep.to_glib(),
))
.ok_or_else(|| glib::glib_bool_error!("Failed to copy timeline element"))
.ok_or_else(|| glib::bool_error!("Failed to copy timeline element"))
}
}
@ -427,7 +427,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
self.as_ref().to_glib_none().0,
paste_position.to_glib(),
))
.ok_or_else(|| glib::glib_bool_error!("Failed to paste timeline element"))
.ok_or_else(|| glib::bool_error!("Failed to paste timeline element"))
}
}
@ -437,7 +437,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
fn ripple(&self, start: gst::ClockTime) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_timeline_element_ripple(self.as_ref().to_glib_none().0, start.to_glib()),
"Failed to ripple"
)
@ -446,7 +446,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
fn ripple_end(&self, end: gst::ClockTime) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_timeline_element_ripple_end(self.as_ref().to_glib_none().0, end.to_glib()),
"Failed to ripple"
)
@ -455,7 +455,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
fn roll_end(&self, end: gst::ClockTime) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_timeline_element_roll_end(self.as_ref().to_glib_none().0, end.to_glib()),
"Failed to roll"
)
@ -464,7 +464,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
fn roll_start(&self, start: gst::ClockTime) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_timeline_element_roll_start(
self.as_ref().to_glib_none().0,
start.to_glib()
@ -525,7 +525,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
fn set_name(&self, name: Option<&str>) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_timeline_element_set_name(
self.as_ref().to_glib_none().0,
name.to_glib_none().0
@ -540,7 +540,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
parent: &P,
) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_timeline_element_set_parent(
self.as_ref().to_glib_none().0,
parent.as_ref().to_glib_none().0
@ -570,7 +570,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_timeline_element_set_timeline(
self.as_ref().to_glib_none().0,
timeline.as_ref().to_glib_none().0
@ -582,7 +582,7 @@ impl<O: IsA<TimelineElement>> TimelineElementExt for O {
fn trim(&self, start: gst::ClockTime) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_timeline_element_trim(self.as_ref().to_glib_none().0, start.to_glib()),
"Failed to trim"
)

View file

@ -17,7 +17,7 @@ use std::mem::transmute;
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use std::ptr;
glib::glib_wrapper! {
glib::wrapper! {
pub struct Track(Object<ffi::GESTrack, ffi::GESTrackClass>) @extends gst::Element, gst::Object;
match fn {
@ -133,7 +133,7 @@ pub trait GESTrackExt: 'static {
impl<O: IsA<Track>> GESTrackExt for O {
fn add_element<P: IsA<TrackElement>>(&self, object: &P) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_track_add_element(
self.as_ref().to_glib_none().0,
object.as_ref().to_glib_none().0
@ -200,7 +200,7 @@ impl<O: IsA<Track>> GESTrackExt for O {
object: &P,
) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_track_remove_element(
self.as_ref().to_glib_none().0,
object.as_ref().to_glib_none().0

View file

@ -18,7 +18,7 @@ use glib::StaticType;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct TrackElement(Object<ffi::GESTrackElement, ffi::GESTrackElementClass>) @extends TimelineElement, @implements Extractable;
match fn {
@ -186,7 +186,7 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
position: u64,
) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_track_element_edit(
self.as_ref().to_glib_none().0,
layers.to_glib_none().0,
@ -291,7 +291,7 @@ impl<O: IsA<TrackElement>> TrackElementExt for O {
fn remove_control_binding(&self, property_name: &str) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::ges_track_element_remove_control_binding(
self.as_ref().to_glib_none().0,
property_name.to_glib_none().0

View file

@ -15,7 +15,7 @@ use glib::StaticType;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct UriClip(Object<ffi::GESUriClip, ffi::GESUriClipClass>) @extends Clip, Container, TimelineElement, @implements Extractable;
match fn {
@ -29,7 +29,7 @@ impl UriClip {
assert_initialized_main_thread!();
unsafe {
Option::<_>::from_glib_none(ffi::ges_uri_clip_new(uri.to_glib_none().0))
.ok_or_else(|| glib::glib_bool_error!("Failed to create Uri clip from Uri"))
.ok_or_else(|| glib::bool_error!("Failed to create Uri clip from Uri"))
}
}
}

View file

@ -16,7 +16,7 @@ use std::boxed::Box as Box_;
use std::mem::transmute;
use std::ptr;
glib::glib_wrapper! {
glib::wrapper! {
pub struct UriClipAsset(Object<ffi::GESUriClipAsset, ffi::GESUriClipAssetClass>) @extends Asset;
match fn {

View file

@ -7,7 +7,7 @@ use crate::UriClipAsset;
use glib::object::IsA;
use glib::translate::*;
glib::glib_wrapper! {
glib::wrapper! {
pub struct UriSourceAsset(Object<ffi::GESUriSourceAsset, ffi::GESUriSourceAssetClass>) @extends Asset;
match fn {

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
Generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
use gstreamer_editing_services_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#include "manual.h"

View file

@ -5,7 +5,7 @@
use glib::object::IsA;
use glib::translate::*;
glib::glib_wrapper! {
glib::wrapper! {
pub struct GLDisplayEGL(Object<ffi::GstGLDisplayEGL, ffi::GstGLDisplayEGLClass>) @extends gst_gl::GLDisplay, gst::Object;
match fn {

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
Generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
use gstreamer_gl_egl_sys::*;

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#include "manual.h"

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#include "manual.h"

View file

@ -12,7 +12,7 @@ use glib::StaticType;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct GLBaseFilter(Object<ffi::GstGLBaseFilter, ffi::GstGLBaseFilterClass>) @extends gst::Object;
match fn {

View file

@ -6,7 +6,7 @@ use crate::GLContext;
use glib::object::IsA;
use glib::translate::*;
glib::glib_wrapper! {
glib::wrapper! {
pub struct GLColorConvert(Object<ffi::GstGLColorConvert, ffi::GstGLColorConvertClass>) @extends gst::Object;
match fn {
@ -32,7 +32,7 @@ impl GLColorConvert {
out_caps: &gst::Caps,
) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::gst_gl_color_convert_set_caps(
self.to_glib_none().0,
in_caps.to_glib_none().0,

View file

@ -13,7 +13,7 @@ use glib::translate::*;
use std::mem;
use std::ptr;
glib::glib_wrapper! {
glib::wrapper! {
pub struct GLContext(Object<ffi::GstGLContext, ffi::GstGLContextClass>) @extends gst::Object;
match fn {
@ -135,7 +135,7 @@ pub trait GLContextExt: 'static {
impl<O: IsA<GLContext>> GLContextExt for O {
fn activate(&self, activate: bool) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::gst_gl_context_activate(self.as_ref().to_glib_none().0, activate.to_glib()),
"Failed to activate OpenGL context"
)
@ -307,7 +307,7 @@ impl<O: IsA<GLContext>> GLContextExt for O {
fn set_window<P: IsA<GLWindow>>(&self, window: &P) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::gst_gl_context_set_window(
self.as_ref().to_glib_none().0,
window.as_ref().to_glib_full()

View file

@ -15,7 +15,7 @@ use std::boxed::Box as Box_;
use std::mem::transmute;
use std::ptr;
glib::glib_wrapper! {
glib::wrapper! {
pub struct GLDisplay(Object<ffi::GstGLDisplay, ffi::GstGLDisplayClass>) @extends gst::Object;
match fn {
@ -89,7 +89,7 @@ pub trait GLDisplayExt: 'static {
impl<O: IsA<GLDisplay>> GLDisplayExt for O {
fn add_context<P: IsA<GLContext>>(&self, context: &P) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::gst_gl_display_add_context(
self.as_ref().to_glib_none().0,
context.as_ref().to_glib_none().0
@ -125,7 +125,7 @@ impl<O: IsA<GLDisplay>> GLDisplayExt for O {
Option::<_>::from_glib_full(ffi::gst_gl_display_create_window(
self.as_ref().to_glib_none().0,
))
.ok_or_else(|| glib::glib_bool_error!("Failed to create window"))
.ok_or_else(|| glib::bool_error!("Failed to create window"))
}
}
@ -172,7 +172,7 @@ impl<O: IsA<GLDisplay>> GLDisplayExt for O {
fn remove_window<P: IsA<GLWindow>>(&self, window: &P) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::gst_gl_display_remove_window(
self.as_ref().to_glib_none().0,
window.as_ref().to_glib_none().0

View file

@ -7,7 +7,7 @@ use glib::object::IsA;
use glib::translate::*;
use std::mem;
glib::glib_wrapper! {
glib::wrapper! {
pub struct GLFramebuffer(Object<ffi::GstGLFramebuffer, ffi::GstGLFramebufferClass>) @extends gst::Object;
match fn {

View file

@ -24,7 +24,7 @@ use std::boxed::Box as Box_;
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))]
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct GLOverlayCompositor(Object<ffi::GstGLOverlayCompositor, ffi::GstGLOverlayCompositorClass>) @extends gst::Object;
match fn {

View file

@ -20,7 +20,7 @@ use std::boxed::Box as Box_;
use std::mem::transmute;
use std::ptr;
glib::glib_wrapper! {
glib::wrapper! {
pub struct GLShader(Object<ffi::GstGLShader, ffi::GstGLShaderClass>) @extends gst::Object;
match fn {
@ -62,7 +62,7 @@ impl GLShader {
#[doc(alias = "gst_gl_shader_attach")]
pub fn attach(&self, stage: &GLSLStage) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::gst_gl_shader_attach(self.to_glib_none().0, stage.to_glib_none().0),
"Failed to attach stage to shader"
)
@ -72,7 +72,7 @@ impl GLShader {
#[doc(alias = "gst_gl_shader_attach_unlocked")]
pub fn attach_unlocked(&self, stage: &GLSLStage) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::gst_gl_shader_attach_unlocked(self.to_glib_none().0, stage.to_glib_none().0),
"Failed to attach stage to shader"
)

View file

@ -7,7 +7,7 @@ use glib::object::IsA;
use glib::translate::*;
use std::ptr;
glib::glib_wrapper! {
glib::wrapper! {
pub struct GLUpload(Object<ffi::GstGLUpload, ffi::GstGLUploadClass>) @extends gst::Object;
match fn {
@ -39,7 +39,7 @@ impl GLUpload {
out_caps: &gst::Caps,
) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::gst_gl_upload_set_caps(
self.to_glib_none().0,
in_caps.to_glib_none().0,

View file

@ -13,7 +13,7 @@ use glib::StaticType;
use std::boxed::Box as Box_;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct GLViewConvert(Object<ffi::GstGLViewConvert, ffi::GstGLViewConvertClass>) @extends gst::Object;
match fn {
@ -52,7 +52,7 @@ impl GLViewConvert {
out_caps: &gst::Caps,
) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::gst_gl_view_convert_set_caps(
self.to_glib_none().0,
in_caps.to_glib_none().0,

View file

@ -13,7 +13,7 @@ use std::boxed::Box as Box_;
use std::mem;
use std::mem::transmute;
glib::glib_wrapper! {
glib::wrapper! {
pub struct GLWindow(Object<ffi::GstGLWindow, ffi::GstGLWindowClass>) @extends gst::Object;
match fn {
@ -246,7 +246,7 @@ impl<O: IsA<GLWindow>> GLWindowExt for O {
height: i32,
) -> Result<(), glib::error::BoolError> {
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::gst_gl_window_set_render_rectangle(
self.as_ref().to_glib_none().0,
x,

View file

@ -9,7 +9,7 @@ use glib::object::IsA;
use glib::translate::*;
use std::ptr;
glib::glib_wrapper! {
glib::wrapper! {
pub struct GLSLStage(Object<ffi::GstGLSLStage, ffi::GstGLSLStageClass>) @extends gst::Object;
match fn {
@ -133,7 +133,7 @@ impl GLSLStage {
) -> Result<(), glib::error::BoolError> {
let n_strings = str.len() as i32;
unsafe {
glib::glib_result_from_gboolean!(
glib::result_from_gboolean!(
ffi::gst_glsl_stage_set_strings(
self.to_glib_none().0,
version.to_glib(),

View file

@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
Generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)

View file

@ -1,5 +1,5 @@
// This file was generated by gir (https://github.com/gtk-rs/gir @ 6ec2baf)
// from gir-files (https://github.com/gtk-rs/gir-files @ 9424eabd)
// This file was generated by gir (https://github.com/gtk-rs/gir @ 0ae3977)
// from gir-files (https://github.com/gtk-rs/gir-files @ 27dc5b40)
// DO NOT EDIT
#[cfg(not(feature = "dox"))]

Some files were not shown because too many files have changed in this diff Show more