appsrc: bind gst_base_src_set_automatic_eos()

See https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1330 for context.
This commit is contained in:
Guillaume Desmottes 2021-11-10 12:17:47 +01:00
parent 3cf2104726
commit eb1c62612e

View file

@ -340,6 +340,17 @@ impl AppSrc {
}
}
#[doc(alias = "set-automatic-eos")]
#[doc(alias = "gst_base_src_set_automatic_eos")]
pub fn set_automatic_eos(&self, automatic_eos: bool) {
unsafe {
gst_base::ffi::gst_base_src_set_automatic_eos(
self.as_ptr() as *mut gst_base::ffi::GstBaseSrc,
automatic_eos.into_glib(),
);
}
}
pub fn sink(&self) -> AppSrcSink {
AppSrcSink::new(self)
}