mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-02 22:22:24 +00:00
Run everything through rustfmt again
This commit is contained in:
parent
97cc1c8458
commit
712ea76d7d
4 changed files with 9 additions and 10 deletions
|
@ -57,12 +57,7 @@ where
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn create(
|
fn create(&self, element: &T, offset: u64, length: u32) -> Result<gst::Buffer, gst::FlowError> {
|
||||||
&self,
|
|
||||||
element: &T,
|
|
||||||
offset: u64,
|
|
||||||
length: u32,
|
|
||||||
) -> Result<gst::Buffer, gst::FlowError> {
|
|
||||||
element.parent_create(offset, length)
|
element.parent_create(offset, length)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -119,7 +114,8 @@ pub unsafe trait BaseSrcBase:
|
||||||
// FIXME: Wrong signature in -sys bindings
|
// FIXME: Wrong signature in -sys bindings
|
||||||
// https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys/issues/3
|
// https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys/issues/3
|
||||||
let buffer_ref = &mut buffer as *mut _ as *mut gst_ffi::GstBuffer;
|
let buffer_ref = &mut buffer as *mut _ as *mut gst_ffi::GstBuffer;
|
||||||
let ret: gst::FlowReturn = from_glib(f(self.to_glib_none().0, offset, length, buffer_ref));
|
let ret: gst::FlowReturn =
|
||||||
|
from_glib(f(self.to_glib_none().0, offset, length, buffer_ref));
|
||||||
|
|
||||||
ret.into_result_value(|| from_glib_full(buffer))
|
ret.into_result_value(|| from_glib_full(buffer))
|
||||||
})
|
})
|
||||||
|
|
|
@ -328,7 +328,8 @@ unsafe impl<T: IsA<gst::Element> + IsA<gst_base::BaseTransform> + ObjectType> Ba
|
||||||
for T
|
for T
|
||||||
where
|
where
|
||||||
T::InstanceStructType: PanicPoison,
|
T::InstanceStructType: PanicPoison,
|
||||||
{}
|
{
|
||||||
|
}
|
||||||
pub type BaseTransformClass = ClassStruct<BaseTransform>;
|
pub type BaseTransformClass = ClassStruct<BaseTransform>;
|
||||||
|
|
||||||
// FIXME: Boilerplate
|
// FIXME: Boilerplate
|
||||||
|
|
|
@ -199,7 +199,8 @@ glib_wrapper! {
|
||||||
|
|
||||||
unsafe impl<T: IsA<gst::Element> + ObjectType> ElementBase for T where
|
unsafe impl<T: IsA<gst::Element> + ObjectType> ElementBase for T where
|
||||||
Self::InstanceStructType: PanicPoison
|
Self::InstanceStructType: PanicPoison
|
||||||
{}
|
{
|
||||||
|
}
|
||||||
|
|
||||||
pub type ElementClass = ClassStruct<Element>;
|
pub type ElementClass = ClassStruct<Element>;
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,8 @@ glib_wrapper! {
|
||||||
|
|
||||||
unsafe impl<T: IsA<gst::Element> + IsA<gst::Bin> + IsA<gst::Pipeline> + ObjectType> PipelineBase
|
unsafe impl<T: IsA<gst::Element> + IsA<gst::Bin> + IsA<gst::Pipeline> + ObjectType> PipelineBase
|
||||||
for T
|
for T
|
||||||
{}
|
{
|
||||||
|
}
|
||||||
pub type PipelineClass = ClassStruct<Pipeline>;
|
pub type PipelineClass = ClassStruct<Pipeline>;
|
||||||
|
|
||||||
// FIXME: Boilerplate
|
// FIXME: Boilerplate
|
||||||
|
|
Loading…
Reference in a new issue