mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-09-29 07:12:25 +00:00
30 lines
815 B
Rust
30 lines
815 B
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! {
|
|
pub struct DiscovererContainerInfo(Object<ffi::GstDiscovererContainerInfo>): DiscovererStreamInfo;
|
|
|
|
match fn {
|
|
get_type => || ffi::gst_discoverer_container_info_get_type(),
|
|
}
|
|
}
|
|
|
|
impl DiscovererContainerInfo {
|
|
pub fn get_streams(&self) -> Vec<DiscovererStreamInfo> {
|
|
unsafe {
|
|
FromGlibPtrContainer::from_glib_full(ffi::gst_discoverer_container_info_get_streams(self.to_glib_none().0))
|
|
}
|
|
}
|
|
}
|
|
|
|
unsafe impl Send for DiscovererContainerInfo {}
|
|
unsafe impl Sync for DiscovererContainerInfo {}
|