mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-09-29 15:22:08 +00:00
51 lines
1.3 KiB
Rust
51 lines
1.3 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 Asset;
|
||
|
use UriClipAsset;
|
||
|
use ffi;
|
||
|
use glib::object::IsA;
|
||
|
use glib::translate::*;
|
||
|
use glib_ffi;
|
||
|
use gobject_ffi;
|
||
|
use gst_pbutils;
|
||
|
use std::mem;
|
||
|
use std::ptr;
|
||
|
|
||
|
glib_wrapper! {
|
||
|
pub struct UriSourceAsset(Object<ffi::GESUriSourceAsset, ffi::GESUriSourceAssetClass>): Asset;
|
||
|
|
||
|
match fn {
|
||
|
get_type => || ffi::ges_uri_source_asset_get_type(),
|
||
|
}
|
||
|
}
|
||
|
|
||
|
pub trait UriSourceAssetExt {
|
||
|
fn get_filesource_asset(&self) -> Option<UriClipAsset>;
|
||
|
|
||
|
fn get_stream_info(&self) -> Option<gst_pbutils::DiscovererStreamInfo>;
|
||
|
|
||
|
fn get_stream_uri(&self) -> Option<String>;
|
||
|
}
|
||
|
|
||
|
impl<O: IsA<UriSourceAsset>> UriSourceAssetExt for O {
|
||
|
fn get_filesource_asset(&self) -> Option<UriClipAsset> {
|
||
|
unsafe {
|
||
|
from_glib_none(ffi::ges_uri_source_asset_get_filesource_asset(self.to_glib_none().0))
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fn get_stream_info(&self) -> Option<gst_pbutils::DiscovererStreamInfo> {
|
||
|
unsafe {
|
||
|
from_glib_none(ffi::ges_uri_source_asset_get_stream_info(self.to_glib_none().0))
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fn get_stream_uri(&self) -> Option<String> {
|
||
|
unsafe {
|
||
|
from_glib_none(ffi::ges_uri_source_asset_get_stream_uri(self.to_glib_none().0))
|
||
|
}
|
||
|
}
|
||
|
}
|