diff options
Diffstat (limited to 'generic/threadshare/examples/standalone/sink/mod.rs')
-rw-r--r-- | generic/threadshare/examples/standalone/sink/mod.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/generic/threadshare/examples/standalone/sink/mod.rs b/generic/threadshare/examples/standalone/sink/mod.rs new file mode 100644 index 000000000..6b8ce9527 --- /dev/null +++ b/generic/threadshare/examples/standalone/sink/mod.rs @@ -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(), + ) +} |