mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-25 21:11:00 +00:00
ts/standalone: move current sink under task_sink
This commit is contained in:
parent
f22be3a586
commit
4616f0a4a4
4 changed files with 19 additions and 18 deletions
|
@ -14,7 +14,7 @@ static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
|
||||||
|
|
||||||
fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
|
fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
|
||||||
src::register(plugin)?;
|
src::register(plugin)?;
|
||||||
sink::register(plugin)?;
|
sink::task::register(plugin)?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,17 +1 @@
|
||||||
use gst::glib;
|
pub mod task;
|
||||||
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(),
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
17
generic/threadshare/examples/standalone/sink/task/mod.rs
Normal file
17
generic/threadshare/examples/standalone/sink/task/mod.rs
Normal 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(),
|
||||||
|
)
|
||||||
|
}
|
Loading…
Reference in a new issue