mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-24 18:41:02 +00:00
base: Add new Aggregator::push_src_event()
method
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1563>
This commit is contained in:
parent
973f843353
commit
cea71246dc
2 changed files with 12 additions and 6 deletions
|
@ -30,6 +30,7 @@ manual = [
|
||||||
"Gst.BufferPool",
|
"Gst.BufferPool",
|
||||||
"Gst.ClockTimeDiff",
|
"Gst.ClockTimeDiff",
|
||||||
"Gst.Element",
|
"Gst.Element",
|
||||||
|
"Gst.Event",
|
||||||
"Gst.EventType",
|
"Gst.EventType",
|
||||||
"Gst.Format",
|
"Gst.Format",
|
||||||
"Gst.Memory",
|
"Gst.Memory",
|
||||||
|
|
|
@ -123,12 +123,17 @@ pub trait AggregatorExt: IsA<Aggregator> + 'static {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//#[cfg(feature = "v1_26")]
|
#[cfg(feature = "v1_26")]
|
||||||
//#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
|
||||||
//#[doc(alias = "gst_aggregator_push_src_event")]
|
#[doc(alias = "gst_aggregator_push_src_event")]
|
||||||
//fn push_src_event(&self, event: /*Ignored*/gst::Event) -> bool {
|
fn push_src_event(&self, event: gst::Event) -> bool {
|
||||||
// unsafe { TODO: call ffi:gst_aggregator_push_src_event() }
|
unsafe {
|
||||||
//}
|
from_glib(ffi::gst_aggregator_push_src_event(
|
||||||
|
self.as_ref().to_glib_none().0,
|
||||||
|
event.into_glib_ptr(),
|
||||||
|
))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(feature = "v1_22")]
|
#[cfg(feature = "v1_22")]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "v1_22")))]
|
||||||
|
|
Loading…
Reference in a new issue