2018-04-23 17:34:22 +00:00
|
|
|
// This file was generated by gir (https://github.com/gtk-rs/gir)
|
|
|
|
// from gir-files (https://github.com/gtk-rs/gir-files)
|
2017-07-04 22:47:33 +00:00
|
|
|
// DO NOT EDIT
|
|
|
|
|
|
|
|
use glib::translate::*;
|
2020-04-15 11:40:37 +00:00
|
|
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
2020-11-19 09:16:33 +00:00
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
2019-06-18 10:12:00 +00:00
|
|
|
use glib::GString;
|
2019-03-19 07:40:05 +00:00
|
|
|
use gst_sys;
|
2019-06-18 10:12:00 +00:00
|
|
|
use Object;
|
|
|
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
2020-11-19 09:16:33 +00:00
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
2019-06-18 10:12:00 +00:00
|
|
|
use Stream;
|
2017-07-04 22:47:33 +00:00
|
|
|
|
|
|
|
glib_wrapper! {
|
2020-11-07 10:17:25 +00:00
|
|
|
pub struct StreamCollection(Object<gst_sys::GstStreamCollection, gst_sys::GstStreamCollectionClass>) @extends Object;
|
2017-07-04 22:47:33 +00:00
|
|
|
|
|
|
|
match fn {
|
2019-03-19 07:40:05 +00:00
|
|
|
get_type => || gst_sys::gst_stream_collection_get_type(),
|
2017-07-04 22:47:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl StreamCollection {
|
2017-10-01 13:52:15 +00:00
|
|
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
2020-11-19 09:16:33 +00:00
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
2017-08-17 11:50:25 +00:00
|
|
|
pub fn get_size(&self) -> u32 {
|
2019-06-18 10:12:00 +00:00
|
|
|
unsafe { gst_sys::gst_stream_collection_get_size(self.to_glib_none().0) }
|
2017-07-04 22:47:33 +00:00
|
|
|
}
|
|
|
|
|
2017-10-01 13:52:15 +00:00
|
|
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
2020-11-19 09:16:33 +00:00
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
2017-08-17 11:50:25 +00:00
|
|
|
pub fn get_stream(&self, index: u32) -> Option<Stream> {
|
2017-07-04 22:47:33 +00:00
|
|
|
unsafe {
|
2019-06-18 10:12:00 +00:00
|
|
|
from_glib_none(gst_sys::gst_stream_collection_get_stream(
|
|
|
|
self.to_glib_none().0,
|
|
|
|
index,
|
|
|
|
))
|
2017-07-04 22:47:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-01 13:52:15 +00:00
|
|
|
#[cfg(any(feature = "v1_10", feature = "dox"))]
|
2020-11-19 09:16:33 +00:00
|
|
|
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_10")))]
|
2018-12-09 16:06:12 +00:00
|
|
|
pub fn get_upstream_id(&self) -> Option<GString> {
|
2017-07-04 22:47:33 +00:00
|
|
|
unsafe {
|
2019-06-18 10:12:00 +00:00
|
|
|
from_glib_none(gst_sys::gst_stream_collection_get_upstream_id(
|
|
|
|
self.to_glib_none().0,
|
|
|
|
))
|
2017-07-04 22:47:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-09 13:01:32 +00:00
|
|
|
//pub fn connect_stream_notify<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
|
2017-07-04 22:47:33 +00:00
|
|
|
// Ignored p0: GObject.ParamSpec
|
|
|
|
//}
|
|
|
|
}
|
2017-08-17 11:50:25 +00:00
|
|
|
|
|
|
|
unsafe impl Send for StreamCollection {}
|
|
|
|
unsafe impl Sync for StreamCollection {}
|