Function gstreamer_base::type_find_helper_for_extension [−][src]
pub fn type_find_helper_for_extension<P: IsA<Object>>(
obj: Option<&P>,
extension: &str
) -> Result<Caps, BoolError>
Expand description
Tries to find the best gst::Caps
associated with extension
.
All available typefinders will be checked against the extension in order
of rank. The caps of the first typefinder that can handle extension
will be
returned.
Free-function: gst_caps_unref
obj
object doing the typefinding, or None
(used for logging)
extension
an extension
Returns
the gst::Caps
corresponding to
extension
, or None
if no type could be found. The caller should free
the caps returned with gst_caps_unref()
.