mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-06-02 21:39:24 +00:00
382138b75a
- enable is_equal function again (unsure why it was disabled) - remove restriction-caps property, encoding-profile objects are immutable - remove cast need by using IsA<EncodingProfile> in parameters and returning the correct type of encodingprofile subclass from the build() functions. It used a internal hack for storing those IsA objects in order to keep the API clean and ready to be used, this should be sorted out as soon as we figure out how to store them in the buidlers. - encodebin example: remove Result error propagation when it is caused by programming mistakes. A panic will happen in those cases. - run rustfmt
41 lines
1.1 KiB
Rust
41 lines
1.1 KiB
Rust
// This file was generated by gir (https://github.com/gtk-rs/gir)
|
|
// from gir-files (https://github.com/gtk-rs/gir-files)
|
|
// DO NOT EDIT
|
|
|
|
use DiscovererStreamInfo;
|
|
use ffi;
|
|
use glib::translate::*;
|
|
use glib_ffi;
|
|
use gobject_ffi;
|
|
use std::mem;
|
|
use std::ptr;
|
|
|
|
glib_wrapper! {
|
|
/// `DiscovererStreamInfo` specific to subtitle streams (this includes text and
|
|
/// image based ones).
|
|
///
|
|
/// # Implements
|
|
///
|
|
/// [`DiscovererStreamInfoExt`](trait.DiscovererStreamInfoExt.html), [`glib::object::ObjectExt`](../glib/object/trait.ObjectExt.html)
|
|
pub struct DiscovererSubtitleInfo(Object<ffi::GstDiscovererSubtitleInfo>): DiscovererStreamInfo;
|
|
|
|
match fn {
|
|
get_type => || ffi::gst_discoverer_subtitle_info_get_type(),
|
|
}
|
|
}
|
|
|
|
impl DiscovererSubtitleInfo {
|
|
///
|
|
/// # Returns
|
|
///
|
|
/// the language of the stream, or NULL if unknown.
|
|
pub fn get_language(&self) -> Option<String> {
|
|
unsafe {
|
|
from_glib_none(ffi::gst_discoverer_subtitle_info_get_language(self.to_glib_none().0))
|
|
}
|
|
}
|
|
}
|
|
|
|
unsafe impl Send for DiscovererSubtitleInfo {}
|
|
unsafe impl Sync for DiscovererSubtitleInfo {}
|