mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-05-13 05:42:41 +00:00
20 lines
424 B
Rust
20 lines
424 B
Rust
use gst::glib;
|
|
use gst::prelude::*;
|
|
|
|
mod imp;
|
|
|
|
pub const ELEMENT_NAME: &str = "ts-standalone-src";
|
|
|
|
glib::wrapper! {
|
|
pub struct TestSrc(ObjectSubclass<imp::TestSrc>) @extends gst::Element, gst::Object;
|
|
}
|
|
|
|
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
|
|
gst::Element::register(
|
|
Some(plugin),
|
|
"ts-standalone-src",
|
|
gst::Rank::NONE,
|
|
TestSrc::static_type(),
|
|
)
|
|
}
|