Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mod.rs « sink « src « inter « generic - gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e71f7cf357d2c27ac0c8756f943fe088567b0a0f (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
35
// SPDX-License-Identifier: MPL-2.0

use glib::prelude::*;
use gst::glib;

mod imp;

/**
 * SECTION:element-intersink
 *
 * #intersink is an element that can be used to produce data for
 * multiple #intersrc elements to consume.
 *
 * You can access the underlying appsink element through the static name
 * "appsink".
 *
 * #intersink should not reside in the same pipeline as the #intersrc
 * that consumes from it, here is an example of how to use those elements
 * in separate pipelines:
 *
 * {{ generic/inter/examples/basic.rs }}
 */

glib::wrapper! {
    pub struct InterSink(ObjectSubclass<imp::InterSink>) @extends gst::Bin, gst::Element, gst::Object;
}

pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
    gst::Element::register(
        Some(plugin),
        "intersink",
        gst::Rank::None,
        InterSink::static_type(),
    )
}