2018-03-06 09:38:27 +00:00
|
|
|
// Copyright (C) 2018 Sebastian Dröge <sebastian@centricular.com>
|
|
|
|
//
|
2021-12-14 18:40:27 +00:00
|
|
|
// Take a look at the license at the top of the repository in the LICENSE file.
|
2022-08-29 15:41:33 +00:00
|
|
|
#![allow(clippy::non_send_fields_in_send_ty, unused_doc_comments)]
|
2018-03-06 09:38:27 +00:00
|
|
|
|
2019-12-02 09:30:07 +00:00
|
|
|
//! A collection of GStreamer plugins which leverage the `threadshare` [`runtime`].
|
|
|
|
//!
|
|
|
|
//! [`runtime`]: runtime/index.html
|
|
|
|
|
2022-08-25 22:30:08 +00:00
|
|
|
/**
|
|
|
|
* plugin-threadshare:
|
|
|
|
*
|
|
|
|
* Since: plugins-rs-0.4.0
|
|
|
|
*/
|
|
|
|
|
2019-12-02 09:30:07 +00:00
|
|
|
#[macro_use]
|
|
|
|
pub mod runtime;
|
2018-03-19 14:47:56 +00:00
|
|
|
|
2020-03-08 18:18:41 +00:00
|
|
|
mod appsrc;
|
2022-11-03 11:33:39 +00:00
|
|
|
mod audiotestsrc;
|
2020-03-13 20:21:11 +00:00
|
|
|
pub mod dataqueue;
|
2020-01-03 17:46:32 +00:00
|
|
|
mod inputselector;
|
2020-03-14 10:34:45 +00:00
|
|
|
mod jitterbuffer;
|
2020-03-14 17:24:14 +00:00
|
|
|
mod proxy;
|
2020-03-13 20:21:11 +00:00
|
|
|
mod queue;
|
2022-11-03 11:33:39 +00:00
|
|
|
pub mod socket;
|
|
|
|
mod tcpclientsrc;
|
|
|
|
mod udpsink;
|
|
|
|
mod udpsrc;
|
2018-03-19 14:47:56 +00:00
|
|
|
|
2021-06-03 18:20:54 +00:00
|
|
|
use gst::glib;
|
2019-11-24 20:12:40 +00:00
|
|
|
|
2018-11-05 11:43:11 +00:00
|
|
|
fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
|
2020-03-08 18:18:41 +00:00
|
|
|
appsrc::register(plugin)?;
|
2022-11-03 11:33:39 +00:00
|
|
|
audiotestsrc::register(plugin)?;
|
2020-01-03 17:46:32 +00:00
|
|
|
inputselector::register(plugin)?;
|
2022-11-03 11:33:39 +00:00
|
|
|
jitterbuffer::register(plugin)?;
|
|
|
|
proxy::register(plugin)?;
|
|
|
|
queue::register(plugin)?;
|
|
|
|
tcpclientsrc::register(plugin)?;
|
|
|
|
udpsink::register(plugin)?;
|
|
|
|
udpsrc::register(plugin)?;
|
2018-11-05 11:43:11 +00:00
|
|
|
|
|
|
|
Ok(())
|
2018-03-06 09:38:27 +00:00
|
|
|
}
|
|
|
|
|
2020-12-20 18:43:45 +00:00
|
|
|
gst::plugin_define!(
|
2019-05-27 20:21:22 +00:00
|
|
|
threadshare,
|
2019-06-03 10:53:58 +00:00
|
|
|
env!("CARGO_PKG_DESCRIPTION"),
|
2018-03-06 09:38:27 +00:00
|
|
|
plugin_init,
|
2019-06-03 10:53:58 +00:00
|
|
|
concat!(env!("CARGO_PKG_VERSION"), "-", env!("COMMIT_ID")),
|
2018-12-06 11:03:04 +00:00
|
|
|
"LGPL",
|
2019-06-03 10:53:58 +00:00
|
|
|
env!("CARGO_PKG_NAME"),
|
|
|
|
env!("CARGO_PKG_NAME"),
|
|
|
|
env!("CARGO_PKG_REPOSITORY"),
|
|
|
|
env!("BUILD_REL_DATE")
|
2018-03-06 09:38:27 +00:00
|
|
|
);
|