blob: 4d3f2beb6a193a5f0767f00586172e78460da3b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// SPDX-License-Identifier: MPL-2.0
use glib::prelude::*;
use gst::glib;
mod imp;
/**
* SECTION:element-intersrc
*
* #intersrc is an element that can be used to consume data from an #intersink.
*
* You can access the underlying appsrc element through the static name
* "appsrc".
*
* #intersrc should not reside in the same pipeline as the #intersink
* that it consumes from, here is an example of how to use those elements
* in separate pipelines:
*
* {{ generic/inter/examples/basic.rs }}
*/
glib::wrapper! {
pub struct InterSrc(ObjectSubclass<imp::InterSrc>) @extends gst::Bin, gst::Element, gst::Object;
}
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
gst::Element::register(
Some(plugin),
"intersrc",
gst::Rank::None,
InterSrc::static_type(),
)
}
|