Skip to main content

gststreamgrouper/
lib.rs

1// Copyright (C) 2024 Igalia S.L. <aboya@igalia.com>
2// Copyright (C) 2024 Comcast <aboya@igalia.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(unused_doc_comments)]
11use gst::glib;
12
13mod streamgrouper;
14
15/**
16 * plugin-streamgrouper:
17 *
18 * Since: plugins-rs-0.14.0
19 */
20
21gst::plugin_define!(
22    streamgrouper,
23    env!("CARGO_PKG_DESCRIPTION"),
24    plugin_init,
25    concat!(env!("CARGO_PKG_VERSION"), "-", env!("COMMIT_ID")),
26    "MPL",
27    env!("CARGO_PKG_NAME"),
28    env!("CARGO_PKG_NAME"),
29    env!("CARGO_PKG_REPOSITORY"),
30    env!("BUILD_REL_DATE")
31);
32
33fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
34    streamgrouper::register(plugin).unwrap();
35    Ok(())
36}