gstreamer-base/basesink: Provide default implementation for render

We need some classes derived from `BaseSink` to not enforce render being
implemented.

An example of this is AudioSink which only requires the user to
implement `write` but not `render`, so the default implementation
of render needs to be called.
This commit is contained in:
Hans Ole Hatzel 2019-12-18 12:07:42 +01:00 committed by Sebastian Dröge
parent be3c378f28
commit 14a55dc73d

View file

@ -35,7 +35,9 @@ pub trait BaseSinkImpl: BaseSinkImplExt + ElementImpl + Send + Sync + 'static {
&self,
element: &BaseSink,
buffer: &gst::Buffer,
) -> Result<gst::FlowSuccess, gst::FlowError>;
) -> Result<gst::FlowSuccess, gst::FlowError> {
self.parent_render(element, buffer)
}
fn prepare(
&self,