mirror of
https://github.com/nestriness/warp.git
synced 2025-12-16 11:55:40 +02:00
17 lines
442 B
Rust
17 lines
442 B
Rust
use gst::glib;
|
|
use gst::prelude::*;
|
|
|
|
mod imp;
|
|
|
|
glib::wrapper! {
|
|
pub struct WaylandDisplaySrc(ObjectSubclass<imp::WaylandDisplaySrc>) @extends gst_base::PushSrc, gst_base::BaseSrc, gst::Element, gst::Object;
|
|
}
|
|
|
|
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
|
|
gst::Element::register(
|
|
Some(plugin),
|
|
"waylanddisplaysrc",
|
|
gst::Rank::Marginal,
|
|
WaylandDisplaySrc::static_type(),
|
|
)
|
|
} |