Skip to main content

gstoriginalbuffer/
lib.rs

1// Copyright (C) 2024 Collabora Ltd
2//   @author: Olivier CrĂȘte <olivier.crete@collabora.com>
3//
4// This Source Code Form is subject to the terms of the Mozilla Public License, v2.0.
5// If a copy of the MPL was not distributed with this file, You can obtain one at
6// <https://mozilla.org/MPL/2.0/>.
7//
8// SPDX-License-Identifier: MPL-2.0
9
10#![allow(clippy::non_send_fields_in_send_ty, unused_doc_comments)]
11
12/**
13 * plugin-originalbuffer:
14 *
15 * Since: plugins-rs-0.12 */
16use gst::glib;
17
18mod originalbuffermeta;
19mod originalbufferrestore;
20mod originalbuffersave;
21
22fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
23    originalbuffersave::register(plugin)?;
24    originalbufferrestore::register(plugin)?;
25    Ok(())
26}
27
28gst::plugin_define!(
29    originalbuffer,
30    env!("CARGO_PKG_DESCRIPTION"),
31    plugin_init,
32    concat!(env!("CARGO_PKG_VERSION"), "-", env!("COMMIT_ID")),
33    "MPL",
34    env!("CARGO_PKG_NAME"),
35    env!("CARGO_PKG_NAME"),
36    env!("CARGO_PKG_REPOSITORY"),
37    env!("BUILD_REL_DATE")
38);