gst-plugins-rs/generic/threadshare/examples/standalone/sink/task/mod.rs

18 lines
379 B
Rust
Raw Normal View History

use gst::glib;
use gst::prelude::*;
mod imp;
glib::wrapper! {
pub struct TaskSink(ObjectSubclass<imp::TaskSink>) @extends gst::Element, gst::Object;
}
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
gst::Element::register(
Some(plugin),
super::TASK_ELEMENT_NAME,
gst::Rank::None,
TaskSink::static_type(),
)
}