gstrsfile/
lib.rs

1// Copyright (C) 2016-2017 Sebastian Dröge <sebastian@centricular.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-rsfile:
14 *
15 * Since: plugins-rs-0.1.0
16 */
17use gst::glib;
18
19mod file_location;
20mod filesink;
21mod filesrc;
22
23fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
24    filesink::register(plugin)?;
25    filesrc::register(plugin)?;
26    Ok(())
27}
28
29gst::plugin_define!(
30    rsfile,
31    env!("CARGO_PKG_DESCRIPTION"),
32    plugin_init,
33    concat!(env!("CARGO_PKG_VERSION"), "-", env!("COMMIT_ID")),
34    "MIT/X11",
35    env!("CARGO_PKG_NAME"),
36    env!("CARGO_PKG_NAME"),
37    env!("CARGO_PKG_REPOSITORY"),
38    env!("BUILD_REL_DATE")
39);