ts/standalone: move current sink under task_sink

This commit is contained in:
François Laignel 2022-10-11 22:39:37 +02:00 committed by Sebastian Dröge
parent f22be3a586
commit 4616f0a4a4
4 changed files with 19 additions and 18 deletions

View file

@ -14,7 +14,7 @@ static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
src::register(plugin)?;
sink::register(plugin)?;
sink::task::register(plugin)?;
Ok(())
}

View file

@ -1,17 +1 @@
use gst::glib;
use gst::prelude::*;
mod imp;
glib::wrapper! {
pub struct TestSink(ObjectSubclass<imp::TestSink>) @extends gst::Element, gst::Object;
}
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
gst::Element::register(
Some(plugin),
"ts-standalone-test-sink",
gst::Rank::None,
TestSink::static_type(),
)
}
pub mod task;

View file

@ -0,0 +1,17 @@
use gst::glib;
use gst::prelude::*;
mod imp;
glib::wrapper! {
pub struct TestSink(ObjectSubclass<imp::TestSink>) @extends gst::Element, gst::Object;
}
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
gst::Element::register(
Some(plugin),
"ts-standalone-test-sink",
gst::Rank::None,
TestSink::static_type(),
)
}