mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-04 16:49:36 +00:00
18 lines
391 B
Rust
18 lines
391 B
Rust
|
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,
|
||
|
gst::Rank::None,
|
||
|
DirectSink::static_type(),
|
||
|
)
|
||
|
}
|