diff --git a/gstreamer-app/src/app_src.rs b/gstreamer-app/src/app_src.rs index 2f8fdccf0..91c88f691 100644 --- a/gstreamer-app/src/app_src.rs +++ b/gstreamer-app/src/app_src.rs @@ -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) }