gst-plugins-rs/generic/threadshare/src/lib.rs

58 lines
1.3 KiB
Rust
Raw Normal View History

2018-03-06 09:38:27 +00:00
// Copyright (C) 2018 Sebastian Dröge <sebastian@centricular.com>
//
// Take a look at the license at the top of the repository in the LICENSE file.
#![allow(clippy::non_send_fields_in_send_ty, unused_doc_comments)]
2018-03-06 09:38:27 +00:00
//! A collection of GStreamer plugins which leverage the `threadshare` [`runtime`].
//!
//! [`runtime`]: runtime/index.html
/**
* plugin-threadshare:
*
* Since: plugins-rs-0.4.0
*/
#[macro_use]
pub mod runtime;
mod appsrc;
mod audiotestsrc;
pub mod dataqueue;
mod inputselector;
mod jitterbuffer;
mod proxy;
mod queue;
pub mod socket;
mod tcpclientsrc;
mod udpsink;
mod udpsrc;
2021-06-03 18:20:54 +00:00
use gst::glib;
fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
appsrc::register(plugin)?;
audiotestsrc::register(plugin)?;
inputselector::register(plugin)?;
jitterbuffer::register(plugin)?;
proxy::register(plugin)?;
queue::register(plugin)?;
tcpclientsrc::register(plugin)?;
udpsink::register(plugin)?;
udpsrc::register(plugin)?;
Ok(())
2018-03-06 09:38:27 +00:00
}
2020-12-20 18:43:45 +00:00
gst::plugin_define!(
threadshare,
env!("CARGO_PKG_DESCRIPTION"),
2018-03-06 09:38:27 +00:00
plugin_init,
concat!(env!("CARGO_PKG_VERSION"), "-", env!("COMMIT_ID")),
"LGPL",
env!("CARGO_PKG_NAME"),
env!("CARGO_PKG_NAME"),
env!("CARGO_PKG_REPOSITORY"),
env!("BUILD_REL_DATE")
2018-03-06 09:38:27 +00:00
);