mirror of
https://github.com/nestriness/warp.git
synced 2025-12-17 04:15:39 +02:00
init
This commit is contained in:
17
gstreamer/src/wayland/mod.rs
Normal file
17
gstreamer/src/wayland/mod.rs
Normal file
@@ -0,0 +1,17 @@
|
||||
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(),
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user