Skip to main content

gsttogglerecord/
lib.rs

1// Copyright (C) 2017 Sebastian Dröge <sebastian@centricular.com>
2//
3// This Source Code Form is subject to the terms of the Mozilla Public License, v2.0.
4// If a copy of the MPL was not distributed with this file, You can obtain one at
5// <https://mozilla.org/MPL/2.0/>.
6//
7// SPDX-License-Identifier: MPL-2.0
8#![allow(clippy::non_send_fields_in_send_ty, unused_doc_comments)]
9
10/**
11 * plugin-togglerecord:
12 *
13 * Since: plugins-rs-0.1.0
14 */
15use gst::glib;
16
17mod togglerecord;
18
19fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
20    togglerecord::register(plugin)
21}
22
23gst::plugin_define!(
24    togglerecord,
25    env!("CARGO_PKG_DESCRIPTION"),
26    plugin_init,
27    concat!(env!("CARGO_PKG_VERSION"), "-", env!("COMMIT_ID")),
28    // FIXME: MPL-2.0 is only allowed since 1.18.3 (as unknown) and 1.20 (as known)
29    "MPL",
30    env!("CARGO_PKG_NAME"),
31    env!("CARGO_PKG_NAME"),
32    env!("CARGO_PKG_REPOSITORY"),
33    env!("BUILD_REL_DATE")
34);