Trait gstreamer_video::prelude::TocSetterExt [−][src]
pub trait TocSetterExt {
fn get_toc(&self) -> Option<GstRc<TocRef>>;
fn reset(&self);
fn set_toc<'a, P>(&self, toc: P)
where
P: Into<Option<&'a GstRc<TocRef>>>;
}Required Methods
fn get_toc(&self) -> Option<GstRc<TocRef>>
Return current TOC the setter uses. The TOC should not be modified without making it writable first.
Returns
TOC set, or None. Unref with
gst_toc_unref when no longer needed
fn reset(&self)
Reset the internal TOC. Elements should call this from within the state-change handler.
fn set_toc<'a, P>(&self, toc: P) where
P: Into<Option<&'a GstRc<TocRef>>>,
P: Into<Option<&'a GstRc<TocRef>>>,
Set the given TOC on the setter. Previously set TOC will be unreffed before setting a new one.
toc
a Toc to set.