Skip to main content

gsticecast/
lib.rs

1// Copyright (C) 2023 Tim-Philipp Müller <tim 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
9/**
10 * plugin-icecast:
11 *
12 * Since: plugins-rs-0.15.0
13 */
14use gst::glib;
15
16mod icecastsink;
17
18fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
19    icecastsink::register(plugin)?;
20    Ok(())
21}
22
23gst::plugin_define!(
24    icecast,
25    env!("CARGO_PKG_DESCRIPTION"),
26    plugin_init,
27    concat!(env!("CARGO_PKG_VERSION"), "-", env!("COMMIT_ID")),
28    "MPL-2.0",
29    env!("CARGO_PKG_NAME"),
30    env!("CARGO_PKG_NAME"),
31    env!("CARGO_PKG_REPOSITORY"),
32    env!("BUILD_REL_DATE")
33);