mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 09:31:06 +00:00
gstreamer-base/aggregator: Implement update_segment manually
This commit is contained in:
parent
1be8ec691e
commit
0aeccc27ff
1 changed files with 12 additions and 0 deletions
|
@ -39,6 +39,9 @@ pub trait AggregatorExtManual: 'static {
|
|||
&self,
|
||||
f: F,
|
||||
) -> SignalHandlerId;
|
||||
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
fn update_segment<F: gst::FormattedValue>(&self, segment: &gst::FormattedSegment<F>);
|
||||
}
|
||||
|
||||
impl<O: IsA<Aggregator>> AggregatorExtManual for O {
|
||||
|
@ -109,6 +112,15 @@ impl<O: IsA<Aggregator>> AggregatorExtManual for O {
|
|||
)
|
||||
}
|
||||
}
|
||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||
fn update_segment<F: gst::FormattedValue>(&self, segment: &gst::FormattedSegment<F>) {
|
||||
unsafe {
|
||||
gst_base_sys::gst_aggregator_update_segment(
|
||||
self.as_ref().to_glib_none().0,
|
||||
mut_override(segment.to_glib_none().0),
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "v1_16", feature = "dox"))]
|
||||
|
|
Loading…
Reference in a new issue