forked from mirrors/gstreamer-rs
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:
parent
3cf2104726
commit
eb1c62612e
1 changed files with 11 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue