Skip to main content

gstcdg/
lib.rs

1// Copyright (C) 2019 Guillaume Desmottes <guillaume.desmottes@collabora.com>
2//
3// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6// option. This file may not be copied, modified, or distributed
7// except according to those terms.
8//
9// SPDX-License-Identifier: MIT OR Apache-2.0
10#![allow(clippy::non_send_fields_in_send_ty, unused_doc_comments)]
11
12/**
13 * plugin-cdg:
14 *
15 * Since: plugins-rs-0.5.0
16 */
17use gst::glib;
18
19mod cdgdec;
20mod cdgparse;
21mod constants;
22mod typefind;
23
24fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
25    cdgdec::register(plugin)?;
26    cdgparse::register(plugin)?;
27    typefind::register(plugin)?;
28    Ok(())
29}
30
31gst::plugin_define!(
32    cdg,
33    env!("CARGO_PKG_DESCRIPTION"),
34    plugin_init,
35    concat!(env!("CARGO_PKG_VERSION"), "-", env!("COMMIT_ID")),
36    "MIT/X11",
37    env!("CARGO_PKG_NAME"),
38    env!("CARGO_PKG_NAME"),
39    env!("CARGO_PKG_REPOSITORY"),
40    env!("BUILD_REL_DATE")
41);