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

18 lines
391 B
Rust
Raw Normal View History

use gst::glib;
use gst::prelude::*;
mod imp;
glib::wrapper! {
pub struct DirectSink(ObjectSubclass<imp::DirectSink>) @extends gst::Element, gst::Object;
}
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
gst::Element::register(
Some(plugin),
super::SYNC_MUTEX_ELEMENT_NAME,
2023-11-02 12:10:59 +00:00
gst::Rank::NONE,
DirectSink::static_type(),
)
}