mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-02 14:12:20 +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!()
|
||||
}
|
||||
|
||||
fn create(
|
||||
&self,
|
||||
element: &T,
|
||||
offset: u64,
|
||||
length: u32,
|
||||
) -> Result<gst::Buffer, gst::FlowError> {
|
||||
fn create(&self, element: &T, offset: u64, length: u32) -> Result<gst::Buffer, gst::FlowError> {
|
||||
element.parent_create(offset, length)
|
||||
}
|
||||
|
||||
|
@ -119,7 +114,8 @@ pub unsafe trait BaseSrcBase:
|
|||
// FIXME: Wrong signature in -sys bindings
|
||||
// https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys/issues/3
|
||||
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))
|
||||
})
|
||||
|
|
|
@ -328,7 +328,8 @@ unsafe impl<T: IsA<gst::Element> + IsA<gst_base::BaseTransform> + ObjectType> Ba
|
|||
for T
|
||||
where
|
||||
T::InstanceStructType: PanicPoison,
|
||||
{}
|
||||
{
|
||||
}
|
||||
pub type BaseTransformClass = ClassStruct<BaseTransform>;
|
||||
|
||||
// FIXME: Boilerplate
|
||||
|
|
|
@ -199,7 +199,8 @@ glib_wrapper! {
|
|||
|
||||
unsafe impl<T: IsA<gst::Element> + ObjectType> ElementBase for T where
|
||||
Self::InstanceStructType: PanicPoison
|
||||
{}
|
||||
{
|
||||
}
|
||||
|
||||
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
|
||||
for T
|
||||
{}
|
||||
{
|
||||
}
|
||||
pub type PipelineClass = ClassStruct<Pipeline>;
|
||||
|
||||
// FIXME: Boilerplate
|
||||
|
|
Loading…
Reference in a new issue